Entry
Is there a way to email the actual HTML form (same format) after a visitor has completed it?
Feb 27th, 2008 00:00
dman, Narendra Jain, Tim Neuman, http://www.ttnr.org
The variables which are used in the form are always submitted to the
web server via the HTTP_VARS. e.g.
<INPUT type="text" maxlength="20" name="first_name">
<INPUT type="text" maxlength="50" name="email_address">
The value a person enters will be available as $first_name and
$email_adress. You can then compose an e-mail message and send it out
as below:
$to = $email_address
$from = "myaddress@mycomputer.com";
$subject = "Your data recieved";
$msg = "You just submitted the following name on our web site".
"\n First Name :". $first_name.
"\n".
"\n We appreciate you submission. Thanks";
mail("$to","$from","$subject","$msg");
And you are done!
Hope that helps...
Narendra Jain