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 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 access information sent trough $_GET on functions?

I am using mail()to process a form. I can only get part of the form to be sent. The $message part only picks up one field in the form.

how do i validate the name into form ?

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

1.want to know simple logic and procedure of FORM VALIDATION? 2.How to check Login and password in PHP?



Custom Search