John_Saunders
11-23-2002, 08:42 PM
I'm using a form on my website and really need some help. What I would like to do is use the code below to print the form if it hasn't been submitted or if there's an error. If the form has been submitted and there hasn't been an error, I would like to hide the code between the tags below.
Can somebody tell me what needs to be changed in the code below? Right now it is printing the entire form whether it has or has not been submitted and when there is or is not an error.
<?php if (isset($error) || !isset($_POST['contact'])) { ?>
//form stuff here
<?php
}
?>
Can somebody tell me what needs to be changed in the code below? Right now it is printing the entire form whether it has or has not been submitted and when there is or is not an error.
<?php if (isset($error) || !isset($_POST['contact'])) { ?>
//form stuff here
<?php
}
?>