Jump to content
Larry Ullman's Book Forums

mogosselin

Members
  • Posts

    1
  • Joined

  • Last visited

mogosselin's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. You see this line: if ( (strtolower($_POST['email']) == 'me@example.com') && ($_POST['password'] == 'testpass') ) It says : If the input field named "email" contains me@example.com AND the input field named "password" contains "testpass", create cookie and set the variable $testpass = true The $_POST['email'] array will be set to whatever field named "email" is posted from the form. Same thing with the $_POST['password']. so if you have an input field like this: <input type="text" name="email">, well the $_POST['email'] will contains the value entered in that field. Now, there's nothing accessing a database in the code you posted, so changing anything in any database won't have any effect on how the code you pasted here works. But, if you change the line with the hardcoded email and password to whatever you want, yes, it'll work.
×
×
  • Create New...