Re: Newbie question

From: Date: Tue, 30 Mar 2004 19:28:32 +0000
Subject: Re: Newbie question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33712@lists.php.net to get a copy of this message
Well, Could be some sort of debugging mode on the PHP running on the server. On the other hand your script is depending on the fact that GLOBALS are turned on, which - you shouldnt. 1) Anywho - you form is using POST, so you should use this syntax : $_POST["variable"], if using GET the equivilant is : $_GET["variable"] 2) You should try to avoid putting variables inside quotes, unless you have a good reason for is. Meaning "Hello $variable"; should be written as : "Hello " . $variable; So the answer to your question would be, on the second page, and I also prefer echo instead of print. echo "Hello " . $_POST["name"] . "!"; or echo 'Hello ' . $_POST["name"] . '!'; -- -- Kim Steinhaug ---------------------------------------------------------------------- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. ---------------------------------------------------------------------- www.steinhaug.com - www.easywebshop.no - www.webkitpro.com ----------------------------------------------------------------------

« previous php.db (#33712) next »