Re: Variable Passing

From: Date: Fri, 08 Apr 2005 14:33:50 +0000
Subject: Re: Variable Passing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212643@lists.php.net to get a copy of this message
> Brad Brevet: > > Hi, I am curious how to pass a variable without using something like id=321. > > I have seen sites that have something like > http://www.website.com/something/321 and the variable is passed > how exactly > is that done? And is it called something specific so I know how to refer to > it in the future? You can do that with $_SERVER["PATH_INFO"]. If your script is /something, this variable will be set to /321

« previous php.general (#212643) next »