[PHP] Re: incrementing a register global

2005-06-17 Thread Aaron Todd
Just so there is no confusion...I mistyped the line: $names = substr(strrchr($_SERVER['QUERY_STRING'],),7,1); It should be a 5 instead of a 7 at the end: $names = substr(strrchr($_SERVER['QUERY_STRING'],),5,1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: incrementing a register global

2005-06-17 Thread Aaron Todd
Thanks for all the suggestions. I am going to plan on trying them out just to see some other ways of making it work. I finally got it to work after hours of just playing around with the code. Here is what I ended up doing: for($i=1;$i=$boxes;$i++){ echo $_GET['name'.$i]; } Moving the $i

[PHP] Re: incrementing a register global

2005-06-16 Thread Sebastian Mendel
Aaron Todd wrote: I am posting data to a php script. I have several variables that are the same except the number at the end is different. So the url of the called script will be something like: http://www.something.com/test.php?name1=Samname2=Billname3=Joe On my script I am using