rendered paste body<?phpclass ProfileEditForm{ public $validation = Array( "check" => VALID_DO_NOTHING, "country" => VALID_IN_DATA_LIST, "gender" => Array( VALID_IN_DATA_LIST, "list" => Array("M", "F", "U") ), "timezone" => VALID_TIMEZONE, "website" => Array( Array( VALID_URL, "allow_empty" => true ) ), "description" => VALID_DO_NOTHING ); public function __construct($form){ //add list data for country include("countryList.php"); $form->addListData("country", $countryList); if(!$form->hasPosted()){ $user = Login::$loggedInUser; $form->data['check'] = Login::$loggedInUser->guid; $form->data['country'] = $user->location; $form->data['gender'] = $user->gender; $form->data['timezone'] = $user->timezone; $form->data['website'] = $user->website; $form->data['description'] = $user->desc; $form->data['email'] = $user->email; } } public function verify($results, $form){ if($form->data['check'] != Login::$loggedInUser->guid){ $form->invalidate("check", "checksumnomatch"); } }}?>