setEmail($_POST['email']); if ( $_POST['pass1'] == $_POST['pass2'] ) $curUser->setPassword($_POST['pass2']); $curUser->save(); forward('index.php?msg=prof_success'); } else { print "internal error"; } } if ( $error ) { print "external error"; } ?>