View previous topic :: View next topic |
Author |
Message |
LostStar Guest
|
Posted: Tue Oct 15, 2002 1:39 am Post subject: Php ignore parameters |
|
|
I have installed php-4.2.3-Win32 and abyss web server 1.1 beta 3 and i'm using this peace of code in php to test parameter passing:
Code: | <?php
echo "<b>Query String:</b> " . $QUERY_STRING . "<BR>";
echo "<b>Value</b> " . $command . "<BR>";
?>
|
I call the page like this http://127.0.0.1/bd2/form.php?command=fdfs
but i always get this error
Quote: |
Notice: Undefined variable: QUERY_STRING in C:\Program Files\Abyss Web Server\htdocs\bd2\form.php on line 2
Query String:
Notice: Undefined variable: command in C:\Program Files\Abyss Web Server\htdocs\bd2\form.php on line 3
Value |
Php is working fine for everything i've tested, but there is no parameter passing, whether is by post or by get. Is this an Abyss problem , php , or just mine ?
I hope its mine :roll:
Thanks in advance for any help |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Oct 15, 2002 2:04 am Post subject: Re: Php ignore parameters |
|
|
LostStar wrote: |
Php is working fine for everything i've tested, but there is no parameter passing, whether is by post or by get. Is this an Abyss problem , php , or just mine ?
I hope its mine :roll:
Thanks in advance for any help |
PHP changed the way it handles passed parameters. Please read http://www.aprelium.com/forum/viewtopic.php?t=274 for more information (basically, you should use $_GET['command'] instead of $command). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
LostStar Guest
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Oct 15, 2002 2:18 am Post subject: Re: Parameter ignored (not) |
|
|
Not a problem, the most important is that you know what to fix now to make your script work. :D
Nice PHPing :D _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Guest
|
Posted: Wed Dec 11, 2002 5:08 pm Post subject: |
|
|
Glad I found this topic - I was doing an example from a book called "Beginning PHP4" and it used the old syntax for getting a query string variable, so of course mine didn't work. Looked up the errata for the book and it said nothing. Used your syntax and it worked great. How the H___ would anybody know about this type of thing unless they just happened to stumble across it in a forum? |
|
Back to top |
|
|
|