jlee2301
July 23rd, 2004, 03:04 PM
Hi
I have a page with a form that asks the user to input a user id and password. On the action element of the form I have set it to go to another page - a php page. This page has the info to connect to a database but I dont know how to check the database for the correct user id and password. I have used sql statements to select info from the database but how do you actually compare what has been entered in a form to the entries in a database and then if it is correct, open another webpage - basically its a login to a members only area of a website. Could really do with some help here - thanks.
Jim
I have a page with a form that asks the user to input a user id and password. On the action element of the form I have set it to go to another page - a php page. This page has the info to connect to a database but I dont know how to check the database for the correct user id and password. I have used sql statements to select info from the database but how do you actually compare what has been entered in a form to the entries in a database and then if it is correct, open another webpage - basically its a login to a members only area of a website. Could really do with some help here - thanks.
Jim