Tuesday, March 19, 2019

PHP Registration Form using GET and POST Method

What is Form?
Form are classified PHP Course In Chennai into many types like registration 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
in the get method.PHP Course and Certification


HOW GET Method Works?
1.Get method is used to PHP Training Institute in Chennai get the input data
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?
1.the process of PHP Course and Certification POST method is happened
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
Method attribute:the method PHP Course in Chennai attribute will specify the
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
relevant field and the radio button PHP Course in Chennai are used to mark
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