Wednesday, July 21, 2010

HOW TO MAKE LOGIN FORM WITH PHP (login)

Posted by Syarif | Wednesday, July 21, 2010 | Category: |

After you make the system of user registration, you must build the "login site" due to make users can enter to their personal page.

The code of login is below: name it (index.php) why you should name it index.php not login.php? because the webserver will automatically call index.php when you put the name of your URL. evcery site in the front page must be login page, right?



<html>
<body>
<div align="center"></div>
<form id="form1" name="form1" method="post" action="authentic.php">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="259"><div align="left">USERNAME</div></td>
<td width="144"><input type="text" name="username" /></td>
</tr>
<tr>
<td><div align="left">PASSWORD</div></td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td><div align="left"></div></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><div align="left"></div></td>
<td><input type="submit" name="ok" value="Login" /></td>
</tr>
<tr>
<td><div align="left">REGISTRATION <a href="register.php">HERE</a></div></td>
</tr>
</table>
</form>
</body>
</html>



Currently have 0 comments:


Leave a Reply