Re: passing variable via url ( newbye question)

From: Date: Thu, 01 Aug 2002 09:01:51 +0000
Subject: Re: passing variable via url ( newbye question)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110630@lists.php.net to get a copy of this message
http://myadress/php/mypage.php?modo=123&color=red&size=3 and to get echo $_GET['modo']."<BR"; echo $_GET['color']."<BR"; echo $_GET['size']."<BR"; but does not work How can i do that ===========HERE=========== import_request_variables("G", "saci_"); echo $saci_modo."<BR>"; echo $saci_color."<BR>"; echo $saci_size."<BR>"; =========================== Tested it! It worked! G stands for GET You can use P or C for POST or COOKIE The order of gpc is important the later overwites the former...see docs(XCVIII. Variable Functions)

« previous php.general (#110630) next »