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://myaddress/php/mypage.php?modo=123color=redsize=3
Just separate name/value pairs with ampersand ().
HTH
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
Saci [EMAIL PROTECTED] 07/30/02 04:09PM
I can pass one variable
You are passing the variables correctly. If that's your actual code
echo $_GET['modo'].BR;
echo $_GET['color'].BR;
echo $_GET['size'].BR;
then you need br (note the closing ) - PHP is doing what you told it, and your
browser is confused by the output. If PHP were the problem you'd probably
PROTECTED]
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
using PHP 3.x on Linux, I've always been able to pass along a variable like
http://www.domain.com/index.php3?foo=bar
and then I could print out this with something like
echo $foo;
would print out "bar"
I've recently installed the latest PHP4 onto a Windows2000 server, I'm
trying the same thing
On Monday 05 March 2001 17:43, you wrote:
using PHP 3.x on Linux, I've always been able to pass along a variable
like http://www.domain.com/index.php3?foo=bar
and then I could print out this with something like
echo $foo;
would print out "bar"
I've recently installed the latest PHP4 onto
6 matches
Mail list logo