Re: Can't pass variables to PHP scripts?! Please help.
| From: | Mike Maltese | Date: | Mon, 04 Feb 2002 09:11:56 +0000 |
| Subject: | Re: Can't pass variables to PHP scripts?! Please help. | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11823@lists.php.net to get a copy of this message | ||
The space is an underscore.
----- Original Message -----
From: "Ross Fleming" <r.fleming@totalise.co.uk>
To: "Travis Wyatt" <hyprlite@sonic.net>; <php-windows@lists.php.net>
Sent: Monday, February 04, 2002 1:01 AM
Subject: RE: [PHP-WIN] Can't pass variables to PHP scripts?! Please help.
> Also, just another point:
> http://www.socopc.com/test.php?testvar=hello_world will not
> work (at least
> it shouldn't), you can't have a space in a URL. It should be URL encoded
to
> :
> http://www.socopc.com/test.php?testvar=hello%20world
>
> Ross
>
> -----Original Message-----
> From: Travis Wyatt [mailto:hyprlite@sonic.net]
> Sent: 04 February 2002 06:51
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Can't pass variables to PHP scripts?! Please help.
>
>
> Here is my situation...I can't seem to get variables to pass from a
> GET or POST method to a PHP script. To see for yourself go to:
> http://www.socopc.com/test.php?testvar=hello_world
>
> The source of "test.php" is...
> <html>
> <? for ($x=0;$x<5;$x++) { echo $x; } ?>
> <br><? print "testvar=\"".$testvar."\""; ?>
> <br><br><br><? phpinfo(); ?>
> </html>
>
>
> And as you will see, I get the error.
> Warning: Undefined variable: testvar in
> c:\root\domains\socopc.com\test.php on line 3
> testvar=""
>
> Indicating that the variable is empty and has not been passed?!
> I'm running Win2k Server w/ Apache and PHP 4.1.1.
>
> If someone could look at that page (included are most of my
> settings). And help me fix my PHP configuration? Thanks!
> ~ Travis
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>