Everything after the question mark is a query string.  Say you have this...

http://www.mydomain.com/index.php?var1=value1&var2=value2&var3=something-else

to access these values in your script...

$_GET['var1']
$_GET['var2']
$_GET['var3']

In other words, if I want to print out the value of var2 on the page....

echo ( "This is var2 : " . $_GET['var2'] );

Will print this out to the browser....

This is var2 : value2

HTH

Simon Angell wrote:
Hi All.
I am currently playing with sripts, and have come across a problem, that i
can't slove. (i am a novice - lol).
The script requires a URL to grab data from. The URL has a ? in it, and
testing the script it grabs the base data of the URL, but not the essential
data i need, which is only brought up with what comes after the ? in the
URL. now i figure it has something to do with the ? in the URL but i can't
seem to fix it myself.

Thanks

--

Cheers
---------------------------------
Simon Angell
Canberra, ACT
www.canberra-wx.com
---------------------------------------------
Proud member of the
Australian Severe Weather Association.
www.severeweather.asn.au
--------------------------------------------------------------




--
By-Tor.com
It's all about the Rush
http://www.by-tor.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to