| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Gert -
 
  Joined: 16 May 2004 Posts: 3
 
  | 
		
			
				 Posted: Mon May 17, 2004 12:09 am    Post subject: script doesn't work | 
				      | 
			 
			
				
  | 
			 
			
				Hi. I can't get this script to work on my own server. It's work fine on another server (my isp host)
 
 
I use the newest php, and abyss versions.
 
 
Here is the script:
 
 
<? 
 
error_reporting (E_ERROR | E_WARNING | E_PARSE); //Ignore errors
 
if(!$name) { //if name is none: 
 
echo"<form>Enter your name: <input type='text' name='name' /><br/><input type='submit' value='Send' /></form>"; 
 
} else { //if name is entered: 
 
echo"Hi $name"; 
 
} 
 
?>
 
 
 
I hope someone can help me | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		eznetlinks -
 
  Joined: 27 Sep 2003 Posts: 144
 
  | 
		
			
				 Posted: Mon May 17, 2004 1:19 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| You must set register_globals=on in your php.ini file locatedi in C:\WINDOWS\php.ini | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		Gert -
 
  Joined: 16 May 2004 Posts: 3
 
  | 
		
			
				 Posted: Mon May 17, 2004 1:23 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| thank you very much. Now it works :D | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		iNaNimAtE -
 
  Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
  | 
		
			
				 Posted: Mon May 17, 2004 2:54 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				Or you can use the workaround so you can keep globals off, by replacing $name with $_POST['name']. _________________ Bienvenidos! | 
			 
		  | 
	
	
		| Back to top | 
		
			                | 
		
	
	
		  | 
	
	
		Gert -
 
  Joined: 16 May 2004 Posts: 3
 
  | 
		
			
				 Posted: Mon May 17, 2004 10:04 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| thank you for the answers :D | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		 |