- Get id/pw
- Validate
- Register
- Reset PW
Open CE and make a new file called INDEX.PHP
and put this in it (don't forget the "<?php and the >")
// ### SHOW LOGIN
echo'
<center>
<h1>Wyverns Tear</h1><p>
<FORM action="checklogin.php" method="POST">
<table>
<tr>
<td>Login ID:<br>
<input type="text" length="20" name="username">
</td></tr><tr>
<td>Password:<br>
<input type="password" length="20" name="password">
</td></TR><TR>
<td>
<input type="submit" value="Login">
</td>
</tr><tr>
<td>
<a href="registration.php">Register</a>
| Forgot Info
</td>
</tr>
</table>
</form>
';
Most of this is just basic html. Notice the "echo" command. I kinda cheat and make a open quote and then shove all my html before the last '; at the bottom. So lets see what we have. Basically there are 2 input boxes. One for ID and one for PW. To get the PW box to show up as dots to hide the typing, simply use the "type" as PASSWORD. We name the id "username" and pw as "password". Pretty self explanitory. Feel free to tinker with this one. If you're really good at html this should be pretty easy.
0 comments:
Post a Comment