Receiving variables using GET Method
$variablename = $_GET['formvariablename'];
Note :The get method passes the variables along to the the php page from the form page by appending them onto the end of the URL.
For example if the form is in the page formpage.html and the php page is submit.php .
Inside the form tag it will be like form action="submit.php" method="get"
Suppose there is a textbox inside the form named txt.When we click the button,it will direct to the url submit.php?txt="Text in the textbox"
Receiving variables using POST Method
$variablename = $_POST['formvariablename'];
Note :The POST method passes the variables along to the the php page as bytes of data,not appending to the url.
Wednesday, December 3, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment