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_name2

1

Not logged in - login
Not logged in
NOTE TO WEBMASTER (delete this element after reading):

 - Delete all unnecessary elements, for example leave only first element that shows a combination of user name and login/logout link, or only two last elements corresponding to Login/Logout and Register new account.

 - Several packs can be put onto the same page, each with its own parameters

 - Changing text of elements has no effect; use pack's configuration to modify corresponding text parameters.





Welcome

(Not logged in)

Account name
Email
Real name

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.

ID (number in database)
Gender
Date of birth
Street address - line 1
Street address - line 2
Phone number
ZIP (postal code)
City/Town
Country
Info 1
Info 1 multiline (use when necessary instead of the single-line field above - delete one of the two)
Info 2
Info 2 multiline (use when necessary instead of the single-line field above - delete one of the two)
Abonné?
Access Rights
Last logged (UNIX timestamp)
Additional status (usually not used)

©2013 IFC Ltd, All Rights Reserved

This site uses Cookies.
to find out more...