A free HTML validator can be found at: http://validator.w3.org
A div table generator site: https://divtable.com/generator/
Steps to get data from text boxes on forms when buttom is pressed:
<FORM NAME ="form1" METHOD ="POST" ACTION ="signup.php">
<P align = center>
Username: <INPUT TYPE = 'TEXT' Name ='username' value="<?PHP print $uname;?>" maxlength="20">
Password: <INPUT TYPE = 'TEXT' Name ='password' value="<?PHP print $pword;?>" maxlength="16">
</P>
<P align = center>email: <input type = 'text' name ='email' value="<?PHP print $email;?>" maxlength="16" />
</P>
<P align = center>
<INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Register">
</P>
</FORM>
After this code, we check to see if the form has been POSTED or not (was the Submit button clicked):
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
}
Most of our code goes between the curly brackets of this if statement. The first thing to do is to get the username and password from the textboxes:
$uname = $_POST['username'];
$pword = $_POST['password'];
$email = $_POST['email'];