Web hosting e commerce - PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY PHP
PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY PHP Solution 9-3: Building the login page The finished code for this page is in login.php in the download files for this chapter. 1. Create a file called login.php in the sessions folder, and build a form with a text input field each for username and password, plus a submit button named login, like this:
2. Now add the PHP code above the DOCTYPE declaration to process the login form. It s adapted from the main PHP code block in file.php in Chapter 7, so you can copy and paste most of it from the earlier file. All the changes are highlighted in bold. $tmp[0], ‘password’ => . rtrim($tmp[1])); // check for a matching record if ($users[$i][’name’] == $_POST[’username’] && . $users[$i][’password’] == $_POST[’pwd’]) {
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.