variables attached to url

From: Date: Sat, 11 May 2002 15:24:58 +0000
Subject: variables attached to url
Groups: php.general 
Request: Send a blank email to php-general+get-97130@lists.php.net to get a copy of this message
a few weeks ago there was a discussion about how to get variables attached to a url like http://server.com/script.php?var1=value1&var2=val ue2&var3=value3 the easiest way to do this is possibly: $vars = explode("&", $argv[0]); parse_str($vars); with these two lines you will have the variables defined in your script and can refer to them by $var1, $var2 etc. jyrgen

« previous php.general (#97130) next »