Notice: A session had already been started - ignoring session_start() in D:\inetpub\wwwroot\ifc-users\user-login.php on line 28 Notice: Use of undefined constant post_name1 - assumed 'post_name1' in D:\inetpub\wwwroot\ifc-users\user-login.php on line 33 post_name1
1
Notice: Use of undefined constant post_name2 - assumed 'post_name2' in D:\inetpub\wwwroot\ifc-users\user-login.php on line 34 post_name21
(Not logged in)
NOTE TO WEBMASTER (delete after reading): the form fields (at the right) show information from the database corresponding to the currently logged user. Use only the necessary fields – all other elements can be deleted.
Use the Property “Visible” to hide the fields.
For each field element, its Property " Attribute Name" represents the name in PHP $_POST array. You can modify this Property. For example, the following PHP code gets the Email value and protects it from basic attacks (writing non-cleaned values to the database leads to very bad consequences, even if website is non-commercial and unknown):
$mail = htmlspecialchars($_POST['user_email'], ENT_QUOTES, 'UTF-8');
// if writing to MySQLi DB (prepared statements are preferred):
// $mailMySQL = $mysqli->real_escape_string($mail);
// writing to SQLite DB (prepared statements are preferred):
// $mailSQLite = $sqliteConn->escapeString($mail);
“Lock” the container (group of elements) to select inner elements easier.
©2013 IFC Ltd, All Rights Reserved