Announcement

Collapse
No announcement yet.

Please help me

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

  • Please help me

    hi
    ive got a form but i cant get it to email it to me when the submit button is pressed, ive read the bit below but cant work out what it means !!
    PLEASE HELP

    2) Now create a new file using Notepad and call it: contact.php
    So now you will have two pages one called

    www.YourDomainName.com/contact.html
    and one called
    www.
    YourDomainName.com/contact.php
    Enter the following code into the file (replace order@example.com with your own email address):

    <HTML>
    <HEAD>
    <TITLE>Succesfully processed your order</TITLE>
    </HEAD>
    <BODY>
    <H2>Thanks for your order!</H2>

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "
    order@example.com";
    $mailsubj = "Enter Your Subject Here";
    $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);
    ?>
    </BODY>
    </HTML>

  • #2
    Re: Please help me

    Originally posted by joely14
    hi
    ive got a form but i cant get it to email it to me when the submit button is pressed, ive read the bit below but cant work out what it means !!
    PLEASE HELP

    2) Now create a new file using Notepad and call it: contact.php
    So now you will have two pages one called

    www.YourDomainName.com/contact.html and one called
    www.
    YourDomainName.com/contact.php
    Enter the following code into the file (replace order@example.com with your own email address):

    <HTML>
    <HEAD>
    <TITLE>Succesfully processed your order</TITLE>
    </HEAD>
    <BODY>
    <H2>Thanks for your order!</H2>

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "
    order@example.com";
    $mailsubj = "Enter Your Subject Here";
    $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);
    ?>
    </BODY>
    </HTML>
    I don't really know how to explain it much better than that. Open up notepad (start>all programs>accessories>notepad>).
    Paste the above code into a new page, changing the relevant bits to reflect your details. Save as (change the file type to all files) contact.php

    Back to your BV page. Use the file publisher tool (looks like a globe with an arrow on it). It opens a box. Duble click the box and browse for the contact.php file that you've just created.

    Publish your page as normal.

    The file published doesn't show on your published page but acts as a kind of basket to carry files to your public.html folder.

    If, after trying the above, you are still experiencing difficulties then please post back asking for help.

    Good luck.

    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


    • #3
      Re: Please help me

      hi
      that made things alot easier to understand, thank you very much.
      only trouble is im still struggling it still doesnt seem to wrk, any help would be really really appreciated :)
      AARRRGGGHHHH
      the website is www.bouncypartyplanners.co.uk/setup/setup.html

      Comment


      • #4
        Re: Please help me

        Hi

        Try this tutorial by Andy 128....it worked for me...as a matter of fact Amanda put me on to it...it was great and easy.



        Hope that helps and like Amanda says check back...some one is always here to help.

        It was simple and I followed it as I went along and now my email is working.
        Beezz
        sigpic


        ___________________
        http://www.beezworld.com

        http://www.bzzybeezwordz.blogspot.com

        Comment


        • #5
          Re: Please help me

          i meant http://www.bouncypartyplanners.co.uk/setup/Setup.html sorry

          Comment


          • #6
            Re: Please help me

            thanks for that link, i expect i am really startin to look silly but still nothing im going crazy
            can anyone do any more to help?
            http://www.bouncypartyplanners.co.uk/setup/Setup.html

            Comment


            • #7
              Re: Please help me

              Just quick question...is it that you are not getting you mail or is the whole form not working...what I mean is...is your form not going through when you send it to your email or is that the you are getting a url error.?
              Beezz
              sigpic


              ___________________
              http://www.beezworld.com

              http://www.bzzybeezwordz.blogspot.com

              Comment


              • #8
                Re: Please help me

                im gettin url error

                Comment


                • #9
                  Re: Please help me

                  Ok then you probably did a goofy like me. Did you name you page contact.bvp or contactme.bvp ...just to be sure that was okay.
                  1.) Now on your form double click to open the properties dialog box.
                  2.) In the section that says action you should type contact.php (or what ever second page you chose...it could also be thankyou.php) as your action to occur. Remember that you must have created a contact.php page for that to work. I created a thankyou page in bluevoda thankyou.bvp and directed my action to thankyou.php so that when my visitors finish the form and send they are sent to the thank you page.
                  3.) Publish all your pages before trying to test your form. I then published all my pages including the thankyou.bvp. Also did you copy the exact script on Andy's tutorial and place it in the page html in the inside tag section of the page you are directing the action to take place (ie your contact.php page where action is directed.) I know this sounds confusing but try and see what happens.
                  4.) Publish everything and see what happens and then we can try again if you are still having problems.

                  basically you have to have somewhere for the page to go to...whether it is thankyou or contactme.
                  Beezz
                  sigpic


                  ___________________
                  http://www.beezworld.com

                  http://www.bzzybeezwordz.blogspot.com

                  Comment


                  • #10
                    Re: Please help me

                    wahoo well done thank you so much, 1 more problem just that ive got the email but no info in it any ideas?

                    Comment


                    • #11
                      Re: Please help me

                      sorry I got one of my 'duh' moments as I call them...I'm not quite sure I know what you mean...
                      Beezz
                      sigpic


                      ___________________
                      http://www.beezworld.com

                      http://www.bzzybeezwordz.blogspot.com

                      Comment


                      • #12
                        Re: Please help me

                        i am now at last gettin the email but the email doesnt contain any information it jus says a for has been submited

                        Comment


                        • #13
                          Re: Please help me

                          Diid you test your form by filling out the fields and sending it.
                          Have you gone into your cpanel and setup your account?
                          I can test it for you by filling out and sending to you if you like....
                          I thought your form looked great and had a lot of info. It is quite fabulous ..although I wanted to know if you meant to spell pinata the way you did deliberately?
                          Beezz
                          sigpic


                          ___________________
                          http://www.beezworld.com

                          http://www.bzzybeezwordz.blogspot.com

                          Comment


                          • #14
                            Re: Please help me

                            wahoo well done thank you so much, 1 more problem just that ive got the email but no info in it any ideas?

                            Comment


                            • #15
                              Re: Please help me

                              ive just got a message saying
                              Values submitted from web site form:

                              Comment

                              Working...
                              X