We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Basic Feedback Form help
Emma79
Posts: 114 Forumite
in Techie Stuff
Hello,
I've been creating (my first) basic form, but am having problems receiving anything back to my email address!
I contacted the hosts (Easyspace) who wrote back:
Thank you - your help is much appreciated!
Emma
I've been creating (my first) basic form, but am having problems receiving anything back to my email address!
I contacted the hosts (Easyspace) who wrote back:
"The contact page tries to use a script called process_form.pl to actually send the mail, and this page doesn't appear to have been uploaded into your webspace. You would need to put it in the www folder beside the contact page."
I'm not sure quite what I need to do. I created the form from online tutorials, but haven't seen anything about creating another page for the form script.Thank you - your help is much appreciated!
Emma
0
Comments
-
Hi,
Code below. Will take a look at your link now.
Thank you!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="myform" method="post" action="process_form.pl">
<input type="hidden" name="email_ad" value="[EMAIL="web@myemail.com"]web@myemail.com[/EMAIL]">
<input type="hidden" name="subject" value="put your subject here.">
<input type="hidden" name="redirect_page" value="thankyou.html">
<p><font size="2" face="Verdana, Trebuchet MS, Tahoma">Let us contact
you!</font><br>
<font size="2" face="Verdana, Trebuchet MS, Tahoma">
<input name="Vname" type="Text" value="Name" size="25">
<br>
</font> <font size="2" face="Verdana, Trebuchet MS, Tahoma">
<input name="Vemail" type="Text" value="email/phone" size="25">
</font>
<p> <font size="2" face="Verdana, Trebuchet MS, Tahoma">
<input type="submit" name="S1" value="Go">
</font>
</form>
<p> </p>
<p> </p>
</body>
</html>0 -
[html] <form action="sendmail.php" method="post" name="myform">
Let Us Contact You!<br>
<label>
<input name="name" type="text" id="name" value="Name">
</label>
<br>
<input name="contact" type="text" id="contact" value="E-mail/Number" />
<br>
<label>
<input name="Submit" type="submit" value="send">
</label>
</form>[/html]
replace that with what you have already.. (edit the fonts / sizes etc) then copy this next bit and save it as sendmail.php once you've done that - upload it to the same directory as your contact page...
[php]
<?php
$name = $_POST;
$contact = $_POST;
// Add your e-mail here
$admin = "ADD YOUR EMAIL HERE@123.COM";
$message = 'Someone has filled out the contact form on your website' . "\n\n";
$message .= 'Name: ' . $name . "\n";
$message .= 'Contact: ' . $contact . "\n";
$message .= $_POST;
$sendTo = $admin;
$Bcc = 'PUTYOUEMAILHERE@something.com';
$headers = 'From: Contact Form <' . $email . '>' . "\r\n" . 'Reply-To: ' . $email . "\r\n" . 'Bcc: ' . $Bcc . "\r\n";
mail($sendTo, $subject, $message, $headers);
header ("Location: thankyou.html");
?>
[/php]
That should work o_00 -
It works!! Thank you so much!!
I looked at the www.tectite.com site which was recommended on the link you gave. Is this where I'd learn to do this myself?
Thank you again - I really appreciate you help.
Emma0 -
I have no idea... just type into google "html tutorials"...
I hate coding.. only learn it when i need to..0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 354K Banking & Borrowing
- 254.3K Reduce Debt & Boost Income
- 455.3K Spending & Discounts
- 247K Work, Benefits & Business
- 603.6K Mortgages, Homes & Bills
- 178.3K Life & Family
- 261.2K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.7K Read-Only Boards