<form action='loginck.php' method=post>
<table border='0' cellspacing='0' cellpadding='0' align=center>
<tr id='cat'>
<tr> <td bgcolor='#f1f1f1' ><font face='verdana, arial, helvetica' size='2' align='center'> Login ID
</font></td> <td bgcolor='#f1f1f1' align='center'><font face='verdana, arial, helvetica' size='2' >
<input type ='text' class='bginput' name='userid' ></font></td></tr>
<tr> <td bgcolor='#ffffff' ><font face='verdana, arial, helvetica' size='2' align='center'> Password
</font></td> <td bgcolor='#ffffff' align='center'><font face='verdana, arial, helvetica' size='2' >
<input type ='text' class='bginput' name='password' ></font></td></tr>
<tr> <td bgcolor='#f1f1f1' colspan='2' align='center'><font face='verdana, arial, helvetica' size='2' align='center'>
<input type='submit' value='Submit'> <input type='reset' value='Reset'>
</font></td> </tr>
<tr> <td bgcolor='#ffffff' ><font face='verdana, arial, helvetica' size='2' align='center'> <a href='signup.php'>New
Member Sign UP</a></font></td> <td bgcolor='#ffffff' align='center'><font face='verdana, arial, helvetica' size='2' >
Forgot Password ?</font></td></tr>
<tr> <td bgcolor='#f1f1f1' colspan='2' align='center'><font face='verdana, arial, helvetica' size='2' align='center'>
</font></td> </tr>
</table></center></form>
This will display the login form for us. Member has to enter the login ID and password in two text boxes displayed in the form. On submit the login ID and password get carried to the page loginck.php were we will be checking all the entered values of the member.
We have to now check the entered id and password against existing data in the table. Please note that we will use the same table used for PHP signup script tutorial so you can use this as a continuation of the signup tutorial. Members can signup and then login. You can download the zip file at the end of this tutorial to install both the signup and login script for your testing.
Sample login form
Luthando | 30-03-2012 |
Hi I have been trying to create a sitemap for website using htlm please help me. |
rick | 16-07-2015 |
I have installed the software several times and set the necessary variables and keep getting this error. Any ideas on how to fix it? Thanks, Error!: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) |
smo1234 | 17-07-2015 |
You must have correct userid and password for your database. |