Jump to content

Clear data


gilespatrickson

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.