I've just got my site up and running, but am struggling with how to get the forms working. I'd appreciate if someone could give me "The Complete Idiot's Guide to Forms on BlueVoda", because the following doesn't mean anything to me whatsoever:
Enter the following code into the file (replace order@example.com with your own email address):
<HTML>
<HEAD>
<TITLE>Succesfully processed your order</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your order!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "order@example.com";
$mailsubj = "Enter Your Subject Here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
Where do I enter this "code", what am I supposed to do with the notepad document I create. Sorry, but I'm completely lost.
The form I'm trying to submit is called "info" and the e-mail address I want it to go to is mirrorm@nyc.com if this makes it easier.
Whoever can help... Much appreciated.
Mike Rix
Client I.D. 5349
Enter the following code into the file (replace order@example.com with your own email address):
<HTML>
<HEAD>
<TITLE>Succesfully processed your order</TITLE>
</HEAD>
<BODY>
<H2>Thanks for your order!</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "order@example.com";
$mailsubj = "Enter Your Subject Here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
Where do I enter this "code", what am I supposed to do with the notepad document I create. Sorry, but I'm completely lost.
The form I'm trying to submit is called "info" and the e-mail address I want it to go to is mirrorm@nyc.com if this makes it easier.
Whoever can help... Much appreciated.
Mike Rix
Client I.D. 5349
Comment