note 48619 deleted from ref.http by nlopess

From: Date: Sun, 02 Jan 2005 11:00:45 +0000
Subject: note 48619 deleted from ref.http by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82561@lists.php.net to get a copy of this message
Note Submitter: private at myteks dot com ---- Here is a great function for HTTP GET: <? $urlvar = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $numElements=count($urlvar); for($counter=0; $counter < $numElements; $counter++){ if($_GET['v'.$counter]){$urlvar[$counter]=$_GET['v'.$counter];} } ?> It takes 11 Vars from the URL and converts them to variables (in the array $urlvar). URL is formatted as FileName.php?v0=enterdata&v1=moredata&v2= etc... Used here for free custom feedback forms: http://www.odioworks.com/custom-feedback-form/ Regards, Sam Odio http://www.MyTeks.com/ Computer Consultants

« previous php.notes (#82561) next »