What is Form?
login form,request form,contact us form etc.A form is submitting your data to
the server. The form is getting the input from the user.
PHP $_POST
PHP post is used to collect the form data after submission of form in post method
PHP $_GET
PHP $_GET can also be used to collect form data after submission of form
HOW GET Method Works?
from the user
2.we can also bookmark the Get method
after the submission of form.
3.Get method is use only String data type because the values are visible in the url.
4.It has high performance compared to POST.
5.the length of the values can be exceeded over 255 characters.
How POST Method Works?
after the submission of input data.
2.the post method process are invisible to users.
3.the Post method will submit the data to the url
4.we can’t bookmark the submitted values.
5.the post method use many data types they are string,numeric and binary etc.
Attribute in Form:
Action attribute:the action attribute will specifies the url that will process the data
submitted type.
The Form uses HTML tags and the form tag is <form>...</form> and it also include
input Box,check box and radio button.
The form are used to collect the input of user and the check box are used to tick the
the relevant field.Form can be written in both php
and html tag,
Using PHP is the easiest way to write the code for form.with the help of get and post
method only The form action is performed.
Simple HTML Form
<html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
</body>
</html>
No comments:
Post a Comment