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 do I remove escape characters from data?

How can I access information sent through POST on a form?

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

How do I escape data that is going into a database?

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



Custom Search