I have a lil problem I can't seem to sort out.... any advice would be greatly appreciated
On a contact I have used this simple code to produce a form:
Code:
<form method="POST" action="thanks.php">
Name: <input type="TEXT" name="name">
Email: <input type="TEXT" name="email">
<input type="SUBMIT" name="Submit" value="ok">
</form>
....and on my thanks.php page I have entered the following code to send an email to a specified address:
Code:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "email@address";
$mailsubj = "Form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --