RE: [PHP] passing variable via url ( newbye question)
| From: | Martin Towell | Date: | Wed, 31 Jul 2002 00:05:45 +0000 |
| Subject: | RE: [PHP] passing variable via url ( newbye question) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110437@lists.php.net to get a copy of this message | ||
Is this a direct copy from your code?
> echo $_GET['modo']."<BR";
> echo $_GET['color']."<BR";
> echo $_GET['size']."<BR";
if so, you'll need to close the <br> tags
see if that helps
Martin
-----Original Message-----
From: Saci [mailto:nospam@bol.com.br]
Sent: Wednesday, July 31, 2002 6:09 AM
To: php-general@lists.php.net
Subject: [PHP] passing variable via url ( newbye question)
I can pass one variable using the url on this way
http://myadress/php/mypage.php?modo=123
and to read i have the code
echo $_GET['modo']."<BR";
That's work fine on 4.21
How can I pass and read 3 variables instead of one ?
I nedd to pass
mode = 123
color= red
size=3
using the url
I tried
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php