contact form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • JazziGirl
    Sergeant

    • Oct 2007
    • 21

    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
  • aussiebaz
    First Lieutenant

    • Jan 2007
    • 175

    #2
    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

    Comment

    • zuriatman
      Moderator

      • Sep 2006
      • 3025

      #3
      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.

      Comment

      • Andy128
        Major General

        • Dec 2005
        • 2317

        #4
        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!

        Comment

        • JazziGirl
          Sergeant

          • Oct 2007
          • 21

          #5
          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);
          ?>

          Comment

          • Andy128
            Major General

            • Dec 2005
            • 2317

            #6
            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!

            Comment

            • id8trak
              Corporal

              • Jan 2008
              • 19

              #7
              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?
              Jamie A.
              www.HiStakes-Spelt.com

              Comment

              • id8trak
                Corporal

                • Jan 2008
                • 19

                #8
                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);
                ?>
                Jamie A.
                www.HiStakes-Spelt.com

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #9
                  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!

                  Comment

                  • id8trak
                    Corporal

                    • Jan 2008
                    • 19

                    #10
                    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.
                    Jamie A.
                    www.HiStakes-Spelt.com

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #11
                      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!

                      Comment

                      • id8trak
                        Corporal

                        • Jan 2008
                        • 19

                        #12
                        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...
                        Jamie A.
                        www.HiStakes-Spelt.com

                        Comment

                        • navaldesign
                          General & Forum Moderator

                          • Oct 2005
                          • 12080

                          #13
                          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!

                          Comment

                          • id8trak
                            Corporal

                            • Jan 2008
                            • 19

                            #14
                            Re: contact form

                            yup, I did delete it. I just checked to make sure.
                            Jamie A.
                            www.HiStakes-Spelt.com

                            Comment

                            • id8trak
                              Corporal

                              • Jan 2008
                              • 19

                              #15
                              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.
                              Jamie A.
                              www.HiStakes-Spelt.com

                              Comment

                              Working...
                              X