RE: [PHP] re: some problems with php form

From: Date: Wed, 19 Oct 2005 19:41:58 +0000
Subject: RE: [PHP] re: some problems with php form
Groups: php.general 
Request: Send a blank email to php-general+get-224347@lists.php.net to get a copy of this message
[snip] I now have: <p><label for="firstname"><span class="red">*</span> First Name: </label><br /> <input class="<?PHP if ($error_msg) {echo "error";} else {echo "normal";}?>" id="firstname" name="firstname" type="text" value="<?php echo $_POST["firstname";]; ?>"> </p> You added one too many, change $_POST["firstname";]; to $_POST['firstname']; <input class="<?PHP if ($error_msg) {echo "error";} else {echo "normal";}?>" id="firstname" name="firstname" type="text" value="<?php echo $_POST['firstname']; ?>">

« previous php.general (#224347) next »