How can I access information sent through POST on a form?
<?php
//user submits form sent with the POST method with an input field called 'name'
$yourname = $_POST['name'];
//$yourname now contains the data sent, note you should sanitise user input if you are going to do anything with it first!
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More website PHP Questions
Hi, I need to fetch data from a web page with PHP. The only problem that I face is that I need to log in with name and password.my web site www.innovativephp.com is not configured properly to dns how can i do that?
How to run a php script on different browsers?
I have uploaded a vbforum which is al coded in php. and i also have a php.ini file. i turned the display_errors off. so now whern i try to go to the site i see a blank page. And everything is correctly coded because i didn't change anything. But it works
How do I keep my site menu in one file?
