gilespatrickson Posted December 21, 2008 Share Posted December 21, 2008 Hello. The script seems to work. What I need to do is remove caching of the variables after the form is sent. Right now when you go back to the page it states "Your mail was sent successfully" every time. Thanks in advance for all the help. <?php $to = "test@yahoo.com"; $subject = "Sub"; $sent = mail($to, $subject, $_REQUEST['body'], $_REQUEST['from']); if($sent) {print "Your mail was sent successfully"; } else {print "We encountered an error sending your mail"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/137918-clear-data/ Share on other sites More sharing options...
Adam Posted December 22, 2008 Share Posted December 22, 2008 Well if that code is run every time the page loads, it's bound to say that? A Quote Link to comment https://forums.phpfreaks.com/topic/137918-clear-data/#findComment-721242 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.