Hello all, Im just getting into PHP and I have a form that i created. Once you fill it in and hit the send button it echo's with a jpeg I created as a response in the same browser window.
It does not allow me to go back to the website, the fields stay filled if I use the browser arrows to return.
What I would like to do now is have the jpeg return to the website and make the fields reset.
I know its possible in PHP using html but I am unsure of where to start the remaining code.
Here is the code:
<?php
$subject = $POST['subject'] ;
$name = $POST['name'] ;
$email = $POST['email'] ;
$comments = $POST['comments'] ;
$message = $name .",\n" . $comments ;
mail( "email goes here", $subject,
$message, "From: $email" );
echo( "<img src='thankyou.jpg'>" );
?>