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

How to find a domain name for an IP address?

where do i go to paste my google adsense code?

How do I find a visitors IP address?

How can I find out where a site visitor comes from?

How do I send HTTP headers with PHP?



Custom Search