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 GET on a form?


If you have a dynamic site or are passing data through the URL, then you will need to use GET to access the variables sent from page to page.

To access the data sent this way, you use the $_GET array like this:

Imagine you have a parameter called 'name' in the URL, here's how to access it:

www.myurl.com?name=johnny

$youare = $_GET["name"]; this will now contain the value 'johnny'

Comments on this Question/Answer

What are magic quotes?
By: sangeeta, 22 Nov 2008 01:42:04



Reply to comments / post your own comment >>>

ASK A QUESTION

More forms PHP Questions

how to display like table from database records?

Hello: I receive two error messages when I try to submit a form. The messages are: Warning: mysqli_query() [function.mysqli-query]: Empty query in /home/content/PRIVATE/html/riskyjobs_riskybusiness_Database_TableSetup_riskyjobs_Table_Chapter9_Page5

How can I check a value entered in a field on my form is a number?

How do I make a website field mandatory?

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



Custom Search