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?


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

What are magic quotes?

How do I remove escape characters from data?

I am having a form. Here, i am submitting the form using java script as its necessary. If the form method is get, i am able to get in redirection page and can get the hidden values in the form. But if the form method is post, i am not able to get those hi

how to avoid the refresh or goback to submit the post values in database

How do I check for an empty field in a form?



Custom Search