Problems Posting!

From: Date: Tue, 22 Oct 2002 13:28:52 +0000
Subject: Problems Posting!
Groups: php.windows 
Request: Send a blank email to php-windows+get-16468@lists.php.net to get a copy of this message
Below is a script i am running, the if and else statements dont seem to be working, it doesnt seem to be picking up the passed values even though the script i have below picks it up. Would it have anything to do with the way i have installed PHP? i am running Windows 2000 server, with PHP 4 Any help would be appreciated Cheers James <?php if (isset($mode)) { echo"PASSED VALUES:<br>"; while (list($name, $value) = each($HTTP_POST_VARS)) { echo "$name = $value<br>\n"; } } else { echo" <form action=\"test_script.php\" name=\"test\" id=\"test\"> <input type=\"hidden\" name=\"mode\" value=\"test\"> <input type=\"text\" name=\"email\"><br> <input type=\"submit\" name=\"submit\" value=\"submit\"> </form> "; } echo"DEFAULT VALUES:<br>"; while (list($name, $value) = each($HTTP_POST_VARS)) { echo "$name = $value<br>\n"; } ?>

« previous php.windows (#16468) next »