Op donderdag 08 augustus 2002 23:22, schreef Ashley M. Kirchner: > DELETES another field and resubmits. At this point, that variable > was already registered, and deleting the value from the form has no > effect. The old value is still there and gets submitted. I need > to check for this somehow.
You shouldn't register before the form is complete right and not after every submit. something like: <? $error=''; if(isset($_POST['yes'])) { if($_POST['field1'])!=1)$error='field1 is not1 !'; etc... } if(empty($error)) { session_start(); $_SESSION['field1']=$_POST['field1']; header(Location: next_page); exit; } if(!empty($error)){ echo error.'<br>'} ?> <form action="<?=$_SERVER['PHP_SELF']?>" method="post"> <input type="text" name="field1" value="<?=isset($_POST['field1']) ? $_POST['field1'] : ''?>"> etc........ <input type="sumbit" name="yes"> </form> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php