Re: WHY will this not work

From: Date: Mon, 12 May 2003 22:40:57 +0000
Subject: Re: WHY will this not work
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147361@lists.php.net to get a copy of this message
----- Original Message ----- From: "Brian V Bonini" <b-bonini@cox.net> To: "PHP Lists" <php-general@lists.php.net> Sent: Monday, May 12, 2003 4:36 PM Subject: [PHP] WHY will this not work > if (isset($admin)) { > echo "<FORM METHOD=\"POST\" ACTION=\"$PHP_SELF\">"; > echo "Enter your Name: <input type=\"text\" > name=\"name\">"; > echo "<input type=\"SUBMIT\" value=\"Submit\">"; > echo"</FORM>"; > } > > if(isset($_POST['Submit'])) { > session_start(); > header("Cache-control: private");// IE 6 Fix. > echo "success"; > } > > When I hit the SUBMIT button if(isset($_POST['Submit'])) should evaluate > as true right? What am I missing.... echo "<input type=\"SUBMIT\" name=\"Submit\" value=\"Submit\">"; ^^^^^^^^^^^^^^ Add that to your form. You're evaluating for the form input's Name, not the Value. :) HTH, Kevin

« previous php.general (#147361) next »