note 48618 deleted from ref.array by nlopess
| From: | nlopess@php.net | Date: | Sun, 02 Jan 2005 11:00:39 +0000 |
| Subject: | note 48618 deleted from ref.array by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82560@lists.php.net to get a copy of this message | ||
Note Submitter: private at myteks dot com
----
Here I use an array to load the values sent to a website through it's URL (can also be used
with _POST) - I find it a very useful bit of code.
<?
$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];}
}
?>
I use it here forcustom feedback forms: http://www.odioworks.com/custom-feedback-form/
Regards,
Sam Odio
http://www.MyTeks.com
Technical Consultants