PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I access information sent through POST on a form?


To do this, you make use of the global variable that is $_POST, as follows:

<?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?



Custom Search