$form = new auto_form($serverlink); //debug queries $form->debug(); //setting callback functions $form->set_onsuccess("rows_removed"); //setting callback functions $form->set_modification("hash_pass"); //excluding table columns $ex = array("ID", "username", "email", "lastname", "firstname", "gender", "password"); //providing form language $lang = array("password" => "Password"); $form->set_language($lang); /************************* * Generating form *************************/ echo "<fieldset>"; echo "<legend>Delete account</legend>"; //adding custom password field $html = "<input type='password' name='password'"; if (isset($_POST["password"])) { $html .= " value='" . $_POST["password"] . "'"; } $html .= "/>"; $form->add_custom_html($html, "password", true); //adding class predefined validation for password $form->add_class_validation("password", "char", true); $form->add_custom_html("<input type='hidden' name='ID' value='2'/>", "ID", true, true); //generating form $form->delete_form("test_users", $ex, "", "Delete your account"); echo "</fieldset>"; ob_end_flush();