NOKIA

pages of blog

Thursday 10 July 2014

HTML , how to create a form

hello .
to create a form in HTML , we must define the action and the method
the action is The value of the page that we're going to 
the method is POST or GET , It is the matrix which is stored inside the values ​​of the variables of the current page , To be sent to the next page

<form action='page2.html' method='POST'>
</form>

ok , here we need an input for put the data , like name , password , image or file uploaded , text befor searching, buttom ...., All of these things called input , We put them inside the form 

<input type="" name="" value=""> 
 all input Must contain
 the type : text , password , submit ,file 
the name : You choose the name, because you need the next page you made ​​commitments for programming.
the value : it is text that is writting at the input . 

<html>
<head>
<title>
page 1 
</title>
</head>
<body bgcolor='red'>

<form action='page2.html' method='POST'>
 <p><input type="text" name="name" value="put the name here"></p>
 <p><input type="password" name="password" value="put the password here"></p>
 <p><input type="submit" name="submit" value="enter"></p>
</form>

</body>
</html> 

the result : 









try it your self . 
the next cour : how to create table by HTML

No comments:

Post a Comment