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

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:
"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

Comments

  • e00c
    e00c Posts: 228 Forumite
    Hi Emma,

    Can you copy and paste your form 'code' here please?

    See this other thread too: click me

    Once you've copied your code - I'll make some alterations and send you it back :)
  • Emma79
    Emma79 Posts: 114 Forumite
    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&#64;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>
  • e00c
    e00c Posts: 228 Forumite
    [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_0
  • Emma79
    Emma79 Posts: 114 Forumite
    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.
    Emma
  • e00c
    e00c Posts: 228 Forumite
    I have no idea... just type into google "html tutorials"...

    I hate coding.. only learn it when i need to..
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.