View Single Post
01-28-2011, 07:09 AM
#1
lplplpx3 is offline lplplpx3
Status: I'm new around here
Join date: Mar 2010
Location:
Expertise:
Software:
 
Posts: 5
iTrader: 0 / 0%
 

lplplpx3 is on a distinguished road

  Old  Php contact form question

This code is from the bottom of a php contact submission form. How can I change the code to direct to, or display a specified web page if the email was successful and another if not in order to stop this generic page from showing. Thanks.

<?php if(isset($emailSent) == true) { ?>
<div class="ok">
<h1>Thanks, <?php echo $name;?></h1>
<p>Your email was successfully sent. We will be in touch soon.</p>
</div>
<?php } ?>


<?php if(isset($hasError) ) { ?>
<div class="error2">There was an error submitting the form.</div>
<?php } ?>