Saturday, January 15, 2011

HTML(FORM)-PHP

For this post,we will learn how to make a form in HTML,but the file is save  in php format not HTML,because we are in PHP course!hee

So the FORM tags can be used to interact with the users. For example text boxes, radio buttons, check boxes, drop down lists, text areas, and submit buttons.Here is the simple example:

<html>
<head>
<title>The First HTML form</title>
</head>
<body>

<FORM NAME ="formOne" METHOD =" " ACTION = "">
 <INPUT TYPE = "TEXT"  VALUE ="username">
<INPUT TYPE = "Submit"  Name = "SubmitOne"   VALUE = "Login">
 </FORM>

</body>
</html>

after paste it on the textpad.save as "HTMLform.php" or any name that u like but remember to save it as PHP file!

 N/NOTE:make sure the browser can read this script...Got problem?well..i'm ready for questions!

No comments:

Post a Comment