«

»

Jun 20

HOW TO MAKE LOGIN FORM (register.php)

In this lesson, we build register form for our registration page. This is the code to make the form:

name it “register.php”

<form id="form1" name="form1" method="post" action="validate.php">
<p> </p>
<p> </p>
<div align="center">
<table width="50%" border="0" cellspacing="2" cellpadding="2">
<tr>
<th colspan="2" scope="col"><div align="center">REGISTER FORM</div></th>
</tr>
<tr>
<th width="49%" scope="row"><div align="left">USERNAME</div></th>
<td width="51%"><label>
<input type="text" name="username" id="username" />
</label></td>
</tr>
<tr>
<th scope="row"><div align="left">E-MAIL</div></th>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<th scope="row"><div align="left">PASSWORD</div></th>
<td><input type="password" name="password" size="25" /></td>
</tr>
<tr>
<th scope="row"><div align="left">RE TYPE PASSWORD</div></th>
<td><input type="password" name="password2" size="25" /></td>
</tr>
<tr>
<th scope="row"><div align="left"></div></th>
<td><label>
<input type="submit" name="ok" id="ok" value="Submit" />
</label></td>
</tr>
</table>
</div>
<p> </p>
</form>

preview:

2 comments

  1. jr_programmer

    (y) request tutorial php menggunakan framework yaa for next article ^^

    1. Syarif Hidayatullah

      noted, Codeigniter for next time. :)

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">