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 = "[email protected]"; $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"; } ?> 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 Link to comment https://forums.phpfreaks.com/topic/137918-clear-data/#findComment-721242 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.