Go to the source code of this file.
Variables | |
| $lang = (isset($_GET['lang'])) ? $_GET['lang'] : $lang_default | |
| $text = $text_multi[$lang] | |
| $buttons = $buttons_multi[$lang] | |
| $months = $months_multi[$lang] | |
| $link = mysql_pconnect($dbhost, $dbuser, $dbpass)) or db_error_mysql() | |
| $pageinfo | |
| info on how to render and parse the application form | |
| $default_params | |
| $_SESSION ["error"] = array() | |
| $thisyear = strftime('%Y') | |
| $_SESSION ["birthday"] = "$year-$month-$day" | |
| $text ['user_info'] | |
| $p = $_SESSION["page"] | |
| $pi_entry = $pageinfo[$p]["edit"] | |
| $errors = FALSE | |
| $usertype_name = (empty($r)) ? "" : $r[1][0] | |
| $table2 | |
| $table3 | |
| $table4 | |
| $kw | |
| $text ['info_1'] | |
| $val = ($p == 4) ? $buttons['finish'] : $buttons['next'] | |
| print< inputtype=\"submit\"name=\"button\""."value=\"".$buttons['prev']."\"$x> print<inputtype=\"submit\"name=\"button\"value=\"$val\"> print | $buttons ['cancel'] |
| $text ['html_footer'] | |
This script displays and processes the web form for new users of the library.
The form consists of several pages. When the last page is reached, the content of the form is stored into the MySQL database.
| finishURL | The user will be redirected to this URL when he has completed the form. | |
| cancelURL | The user will be redirected to this URL if he has pressed the 'cancel' button | |
| button | the value of the "submit" button that was pressed by the user | |
| various | the data entered by the user into the html form |
Definition in file edit.php.
| $pageinfo |
info on how to render and parse the application form
The $pageinfo[] array describes the multi-page HTML form that the applicant is required to fill in.
$pageinfo[N] describes page N and contains an associative array with the following (required) elements:
1.4.7