Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Using php to validate an html form and navigate appropriately

$
0
0
Hi all,

Right now I have a "log in" page that displays a simple form.  This form has two text boxes for input ("user name" and "password"), as well as a "submit" button. 

My desired functionality is that once the user enters their username and password into the appropriate fields and clicks "submit", some php code will connect to my mysql database (which has a table full of user names and passwords), to validate the user input.  If the information the user entered is found in the database, they would be re-directed to another page.  If not, they would be stuck at this "log in" page. 

I'm sure this is a silly, or common question, but does anybody know how I might be able to do this? 

Thanks very much,
Phil

Viewing all articles
Browse latest Browse all 13200