Importance of $_POST in php
see the below example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?php print_r($_POST); ?> <html> <head> <title>Simple Contact Form</title> </head> <body> <form id="myform1" method="post" action="test.php"> <br /> Employee Name : <input type="text" name="name" value="" /> <br /> Email : <input type="text" name="email" value="" /> <br /> Phone : <input type="text" name="phone" value="" /> <br /> <p><input type="submit" name="submit" class="button" value="Submit" /></p> </form> </body> </html> |
//ouptut :Array ( [name] => [email] => [phone] => [submit] => Submit )