another variable related question....

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
pointsplat
-


Joined: 20 Nov 2002
Posts: 2

PostPosted: Sat Nov 23, 2002 3:10 am    Post subject: another variable related question.... Reply with quote

Hey I apologize for writing this here but I am trying it in a couple diff message boards and trying to get an answer about the new php commands.

Here is my predicament: With the new standards I need to use the
Code:
$_GET[]
command to get infromation form the query, right? Well I don't want to have 10 million variable names hanging off of my URL so I tried the
Code:
$_GET[]
command without having the variable I use the get command to get and I get a undefined index warning. Is there anyway to avoid this? I just want to check if a variable exists in the query and if not I want to set that variable to 0.

Grant[/code]
Back to top View user's profile Send private message Visit poster's website AIM Address
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Nov 23, 2002 11:24 pm    Post subject: Re: another variable related question.... Reply with quote

If I understand well, you want to have urls that look like: http://mysite/myscript.php?something , and you want to get "something".
If it is what you want, use $_SERVER['QUERY_STRING'] .

If it isn't the answer to your question, please ask us again :D
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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