How do I add an e-mail page on my web site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #16
    Re: How do I add an e-mail page on my web site

    <?PHP
    $email = $HTTP_POST_VARS[email];//change to mail
    $mailto = "*************.com";
    $mailsubj = "Testing Contact Form";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    Also- the encode type should be "multipart/form-data"
    The reason is that your e-mail field on the form is named mail- the php script is looking for email to put in as the mailhead.
    Andy
    PHP- is a blast!

    Comment

    • Alkah
      Private First Class

      • Sep 2006
      • 6

      #17
      Re: How do I add an e-mail page on my web site

      Thanks for the quick response:

      I changed [email] to [mail] but it still isnt working.

      Comment

      • Andy128
        Major General

        • Dec 2005
        • 2317

        #18
        Re: How do I add an e-mail page on my web site

        Have you checked your spam folder? Sometimes (as has been reported) the mail ends up in the spam folder.

        Andy
        PHP- is a blast!

        Comment

        • Alkah
          Private First Class

          • Sep 2006
          • 6

          #19
          Re: How do I add an e-mail page on my web site

          Isnt in there. I heard you say something about encoding type, but I didnt understand what that means.

          Comment

          • Alkah
            Private First Class

            • Sep 2006
            • 6

            #20
            Re: How do I add an e-mail page on my web site

            Ive kept trying and trying... nothing seems to help

            Comment

            • Andy128
              Major General

              • Dec 2005
              • 2317

              #21
              Re: How do I add an e-mail page on my web site

              Below is the html form code on your form page. On the first line, change
              the enctype=''" to - enctype="mulitpart/form-data"

              <form action="contact.php" method="post" enctype="">
              <h3>This form sends an e-mail to W3Schools.</h3>
              Name:<br>
              <input type="text" name="name"
              value="yourname" size="20">
              <br>
              Mail:<br>
              <input type="text" name="mail"
              value="yourmail" size="20">
              <br>
              Comment:<br>
              <input type="text" name="comment"
              value="yourcomment" size="40">
              <br><br>
              <input type="submit" value="Send">
              <input type="reset" value="Reset">
              Andy
              PHP- is a blast!

              Comment

              • Alkah
                Private First Class

                • Sep 2006
                • 6

                #22
                Re: How do I add an e-mail page on my web site

                I did that, still no email being dispatched. I dont know whatelse to do.

                Comment

                • Alkah
                  Private First Class

                  • Sep 2006
                  • 6

                  #23
                  Re: How do I add an e-mail page on my web site

                  Any word on this?

                  Comment

                  • Detours
                    Corporal

                    • Nov 2006
                    • 17

                    #24
                    Re: How do I add an e-mail page on my web site

                    Hi everyone

                    I am totally new to this game and am attempting to build a simple website with BlueVoda. I have read the tutorials on forms and think I can manage to set up a simple email contact page.

                    BUT...what I need help on is this:

                    On some of my pages I have inserted a button that I have called 'Email Us'. Is it possible to link this button to the contact page so that when people click it it jumps straight to the contact form for them to fill out ?? If so, how do I do this?

                    Please reply in simple language. I am a simple Aussie and do not understand web-speak!

                    Thanks

                    Detours
                    ID: 62579725

                    Comment

                    • LadyEye
                      General & Forum Moderator

                      • Jun 2006
                      • 10526

                      #25
                      Re: How do I add an e-mail page on my web site

                      Originally posted by Detours
                      Hi everyone

                      I am totally new to this game and am attempting to build a simple website with BlueVoda. I have read the tutorials on forms and think I can manage to set up a simple email contact page.

                      BUT...what I need help on is this:

                      On some of my pages I have inserted a button that I have called 'Email Us'. Is it possible to link this button to the contact page so that when people click it it jumps straight to the contact form for them to fill out ?? If so, how do I do this?

                      Please reply in simple language. I am a simple Aussie and do not understand web-speak!

                      Thanks

                      Detours
                      ID: 62579725

                      Yes you link the buttong to your contact page ..... double click your button that says email us, and a pop up box will appear and you will notice a tab saying link .... click that and type the url in the area there ....

                      the url will look something like this



                      or whatever you named your contact form page .....

                      hope that helps


                      another tip for you in the forum, you can start your own thread by clicking "new thread", this will give you your own spot to post your question and have several people comment on your question, this way everyone has their own questions being taken care of in their own thread, know what I mean ....

                      VodaHost

                      Your Website People!
                      1-302-283-3777 North America / International
                      02036089024 / United Kingdom
                      291916438 / Australia

                      ------------------------

                      Top 3 Best Sellers

                      Web Hosting - Unlimited disk space & bandwidth.

                      Reseller Hosting - Start your own web hosting business.

                      Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


                      Comment

                      • Detours
                        Corporal

                        • Nov 2006
                        • 17

                        #26
                        Re: How do I add an e-mail page on my web site

                        Hi there Holly Lady-eye

                        Thanks again for your reply and tips. I'll get the hang of it eventually...

                        I tried double-clicking the button I have inserted but it only brings up a window called 'Button Properties'.

                        This asks for:

                        Name:
                        Value/Label:
                        and then a choice of 'normal'. 'submit' or 'reset'

                        There is no tab saying 'link' ??

                        Thanks

                        Comment

                        • Dream Lady
                          Major General

                          • Feb 2006
                          • 2036

                          #27
                          Re: How do I add an e-mail page on my web site

                          Originally posted by Detours
                          Hi there Holly Lady-eye

                          Thanks again for your reply and tips. I'll get the hang of it eventually...

                          I tried double-clicking the button I have inserted but it only brings up a window called 'Button Properties'.

                          This asks for:

                          Name:
                          Value/Label:
                          and then a choice of 'normal'. 'submit' or 'reset'

                          There is no tab saying 'link' ??

                          Thanks
                          Detours: The button you are using is for forms control and not intended for what you are using it for. I would suggest using a text block that says "EMAIL US", or find an image button you like that says "EMAIL US". Then follow Ladyeyes suggestion on how to link. Hope this helps
                          Cindy Smentowski

                          Comment

                          • darklight
                            Brigadier General

                            • Jul 2006
                            • 1309

                            #28
                            Re: How do I add an e-mail page on my web site

                            I have used Andy's tutorial and it really is great. Just thought I would put that little bit of information in! as there isnt really anything else I can add!
                            Forms are a better/ more safer method for having people contact you!

                            Regards

                            Teri

                            Comment

                            Working...
                            X