Help, I can't understand the 'arg_separator' directive
| From: | loic-info at netcourrier dot com | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Help, I can't understand the 'arg_separator' directive | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45614@lists.php.net to get a copy of this message | ||
Hi!
My system : win 98SE, Apache 1.3.19 & the latest php4.0.5-RC1 binaries from www.php4win.de
My problem is that I can't understand how the 'arg_separtor' directive works.
Here is my test script :
<?php
// grabs the sent variables names and values
while(list($name, $value) = each($HTTP_GET_VARS))
echo($name . ' = ' . $value . '<br />');
?>
<p>
<a href="test_amp.php?var1=1&var2=2&var3=3">test with simple
'&'</a><br /><br />
<a href="test_amp.php?var1=1&var2=2&var3=3">test with
'& amp;'</a>
</p>
Note that the second link contains '& amp;' to separate variables (I don't how
this will be displayed on the list).
If the 'arg_separator' directive is set to '&' I always (whatever is the
link I've clicked on among the two previous ones) get the results:
r1 = 1
r2 = 2
r3 = 3
What's matter? I must have done something wrong but what?
Thanks in advance,
---------------------------------------
Loïc (aka lolo) for the phpHeaven-team.
Please reply to: lolo@phpHeaven.net
---------------------------------------
----- La messagerie itinérante sans abonnement NetCourrier -----
Web : www.netcourrier.com - Minitel : 3615 NETCOURRIER
Téléphone : 08 36 69 00 21