Mega Code Archive

 
Categories / Php / Form
 

Forms and PHP

//index.htm <html> <body> <form action="index.php" method="post"> Your Name:<br> <input type="text" name="name" size="20" maxlength="20" value=""><br> Your Email:<br> <input type="text" name="email" size="20" maxlength="40" value=""><br> <input type="submit" value="go!"> </form> </body> </html> //index.php <html> <head> <title></title> </head> <body> <?     print "Hi, $name!. Your email address is $email"; ?> </body> </html>