PHP $_POST Variable
$_POST variable is used to collect values in a form with method="post".
Example
Code:<html> <body> <form action="" method="post"> Name: <input type="text" name="fname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> </body> </html> Welcome <?php echo $_POST["fname"]; ?>!<br /> You are <?php echo $_POST["age"]; ?> years old.




Reply With Quote
Bookmarks