| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| pointsplat -
 
 
 Joined: 20 Nov 2002
 Posts: 2
 
 
 | 
			
				|  Posted: Sat Nov 23, 2002 3:10 am    Post subject: another variable related question.... |   |  
				| 
 |  
				| 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  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  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 |         | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Sat Nov 23, 2002 11:24 pm    Post subject: Re: another variable related question.... |   |  
				| 
 |  
				| 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 |       | 
	
		|  | 
	
		|  |