Friday 19 April 2013

PHP $_POST


$ _POST Function is used to collect the value of the menggukana form method = "post"

Function $ _POST.
$ _POST Function is used to collect the value of the menggukana form method = "post"

Information sent from the menggukan form method = "post" very confidential and do not look and function can send data up to 8mb, and if you want to add to your form you can send a setting in the php.ini.

EXAMPLE:
<html>
The source code is action="user.php" method="post">
Name: <input type="text" name="nama" />
Age: <input type="text" name="umur" />
</ form>
</ html>

user.php file
<? php
echo 'Your name:'. $ _POST ['Name']. '<br />';
echo 'Your age:'. $ _POST ['Age']. 'years';
?>

RESULTS:
If you enter 'Budi' on the field name and '20 'on the life of the field will be printed.
Your name: Budi
Your Age: 20 years

No comments:

Post a Comment