parameters after a URL - know about the "?" but...

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

eyewoo
New php-forum User
New php-forum User
Posts: 71
Joined: Sun Mar 09, 2003 10:29 am
Location: Pennsylvania, USA
Contact:

parameters after a URL - know about the "?" but...

Postby eyewoo » Mon Mar 17, 2003 11:59 am

I understand how to pass variables with a URL using the "?" and suceeding "&". However, is it possible to get the value of just one parameter after the "?". For example:

http://www.mysite.com?6

Is there a way to pick up the 6 or absence of the 6?

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Postby Xerpher » Mon Mar 17, 2003 3:34 pm

$_SERVER['QUERY_STRING'] will give you everything after the '?'

eyewoo
New php-forum User
New php-forum User
Posts: 71
Joined: Sun Mar 09, 2003 10:29 am
Location: Pennsylvania, USA
Contact:

Postby eyewoo » Tue Mar 18, 2003 3:36 am

Thanks once again Xerpher... 8)


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest