Php ignore parameters

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
LostStar
Guest





PostPosted: Tue Oct 15, 2002 1:39 am    Post subject: Php ignore parameters Reply with quote

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

PostPosted: Tue Oct 15, 2002 2:04 am    Post subject: Re: Php ignore parameters Reply with quote

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 View user's profile Send private message Send e-mail
LostStar
Guest





PostPosted: Tue Oct 15, 2002 2:04 am    Post subject: Parameter ignored (not) Reply with quote

My mistake ... someone already ask this.. its a new feature on php...

http://www.aprelium.com/forum/viewtopic.php?t=85

:lol:
Back to top
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Oct 15, 2002 2:18 am    Post subject: Re: Parameter ignored (not) Reply with quote

LostStar wrote:
My mistake ... someone already ask this.. its a new feature on php...

http://www.aprelium.com/forum/viewtopic.php?t=85

:lol:

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 View user's profile Send private message Send e-mail
Guest






PostPosted: Wed Dec 11, 2002 5:08 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group