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

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?


If you are using a form on your website for instance a contact form that visitors use to get in touch with you, then you will most probably be using post, as in setting the method in your opening form tag to 'post'.

To access the data posted, you use the $_POST array like this:

Imagine you have a form field called 'name' on the form, when the user clicks submit to the post form, you can then access the value like this:

$_POST["name"]; and that's all there is to it!

Comments on this Question/Answer

What is the full syntax of using post method when you want to access information sent through aform
By: MAJIGO, 22 May 2009 09:44:17

How can i edit the database records in one form into another.
By: J.Ranipriyanka, 03 Dec 2009 00:34:05



Reply to comments / post your own comment >>>

ASK A QUESTION

More forms PHP Questions

How do I check that a valid email address is entered?

if i send values to database ,but in that table zeros is added ,how can i rectify the error

What are magic quotes?

How do I make a website field mandatory?

is it possible to submit a form without a submit button



Custom Search