+ Reply to Thread
Results 1 to 17 of 17

Thread: contact form
      
   

  1. #1
    JazziGirl is offline Sergeant
    Join Date
    Oct 2007
    Posts
    21

    Red face contact form

    Going round and round... have watched email tutorials etc. (quite a few times) and am just plain dizzy.

    Can anyone see what I have done incorrectly (or not done) that is keeping me from getting emails from the contact us form. The action "thank you for your submission" page pops right up, but the emails don't make it to me...

    Thanks in advance for ANY ideas and help offered!!!

    www.SaveOurSpace.info

  2. #2
    aussiebaz is offline First Lieutenant
    Join Date
    Jan 2007
    Location
    Newcastle , Australia
    Posts
    178

    Default Re: Help me if you can... I'm feeling.....

    I think the problem is that you have not inserted
    the necessary coding into your action page.

    Did you insert this:
    <?PHP
    $mailto = "your email";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "subject of email";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

    if not you need to, and also change the places shown on RED


  3. #3
    zuriatman's Avatar
    zuriatman is offline Moderator
    Join Date
    Sep 2006
    Location
    Malaysia
    Posts
    3,036

    Default Re: Help me if you can... I'm feeling.....

    Hi,

    Why dont you just use a "contactus " button?
    Right click on the button . select properties and then select
    "Mailto" instead of [Http://] and name the page "Email us".

    Once published and whoever clicks on the button will have his
    email program pop up.
    www.siapamoyanganda.com/
    Malaysian Family Tree Website From the
    State of Johor.

    HAPPY ARE THOSE WHO DREAM DREAMS AND ARE READY TO PAY THE PRICE TO MAKE THEM COME TRUE.

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: contact form

    Please post a link to your contact page and then paste the php code you are using here so we can have a look.

    Cheers-
    Andy
    PHP- is a blast!

  5. #5
    JazziGirl is offline Sergeant
    Join Date
    Oct 2007
    Posts
    21

    Wink Re: contact form

    I have worked things out that I DO receive an email with a contact request... name and email info come fine!!

    I now need to fix whatever will make the comments entered on my contact request form show on that email.Do I need to right click on that comments box and add code...?
    And if so what should I add to make that happen?

    Thanks...

    www.saveourspace.info/contactform.php

    (This is the code on my action page)
    <?PHP
    $mailto = "info@saveourspace.info";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "contact request from SOS";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "name,email,comments :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

  6. #6
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: contact form

    Your comments section is outside the form. Delete the comments box and then stretch the form down to to accomodate the size of your comment box. Then place the comment box back on the form- save and publish.

    Should work then.

    Andy
    PHP- is a blast!

  7. #7
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: contact form

    I need help with the same problem, I am not sure what I am doing wrong. I get an email from my info@domainname.com and it even has a great subject line - which is in the page html (as directed), but I am not getting ANY comments in the body. I've read several threads and am not getting much help from trying different things... please help?

  8. #8
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: contact form

    p.s. here is the code in the page html:

    <?PHP
    $mailto = "info@histakes-spelt.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Contact Form from HiStakes-Spelt";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from website form: \n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

  9. #9
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: contact form

    In which page did you embedd the script ? It should be in the "action" page.
    If you have it in the form page, you will be recieving a blank email everytime you open the form page in the browser.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  10. #10
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: contact form

    hi. Thanks Naval. Was that part of the instruction in the tutorial? I now have the script on the action page and it work brilliantly. Thanks. I was getting tired of getting blank emails from the form.
    You are much appreciated by all.

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: contact form

    Thank you.

    Actually yes, it is part of the tutorial: the php script should be placed in the "action" page.

    The main body of the tutorial, is in the text under the multimedia presentation.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  12. #12
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: contact form

    that was the main part I was following. I will go back and re-watch & read the tutorial, I got the form to work now, but I'm still getting blank emails...

  13. #13
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: contact form

    You have added the script in your action page, BUT, did you delete it from your form page ?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  14. #14
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: contact form

    yup, I did delete it. I just checked to make sure.

  15. #15
    id8trak is offline Corporal
    Join Date
    Jan 2008
    Location
    Idaho
    Posts
    18

    Default Re: contact form

    Naval, (or someone)
    I am still getting blank emails... is the only reason I would get them is because I have a mystery email script on some page? Please help? I don't appreciate blank emails in my inbox.

  16. #16
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: contact form

    Make sure you don't have the script on the same page the actual form displays. Otherwise each time the user loads your form it will send the email, and then also when the submit the filled out form

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  17. #17
    Join Date
    Jul 2006
    Location
    Naples Florida, USA
    Posts
    25

    Default Re: contact form

    Oh my gosh, I've been having the same problems Jamie has had, and only now had the time to go and look for the tutorials again to try and figure this out! So glad to see that I was the only one...........
    Regards,
    Sania

    The links bellow are clickable:
    http://www.pokerchipsandmore.com - Poker chips, poker tables and poker accessories
    http://www.porcelaindollsandmore.com - Porcelain dolls, porcelain plates, porcelain figurines, and more.
    http://www.oursportscollectibles.com - Sports Collectibles and Memorabilia

    All are still a work in progress, as I cannot get all my products listed fast enough....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49