Help

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

    • Sep 2007
    • 11

    Help

    jiallen

    I HAVE CREATED A CONTACT PAGE AND THANK YOU PAGE FOLLOWED ALL THE INSTRUCTIONS IN THE FORM TUTORIALS 3 TIMES BUT I CAN NOT GET THE THANK YOU PAGE TO OPEN NOR THE EMAIL TO WORK BEFORE YOU ASK IT WORKS EXTERNALY I THINK IT MIGHT BE IN THE HTML CODE I HAVE ENTERED THE EMAIL ADDRESS IN THE FIRST AREA AND CONTACT SUBMISSON FORM IN THE SECOND


    www.the-bestbookshop.co.uk
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: Help

    jiallen,

    Greetings. First- did you publish an action.php page? That page will contain the php code to gather the data and send it to your e-mail address. The reason I ask is that I cannot find the action.php page at all.

    Second- could you copy and paste the php script that you are using? That will help us to see what is going on.

    Andy
    PHP- is a blast!

    Comment

    • jiallen4729
      Corporal

      • Sep 2007
      • 11

      #3
      Re: Help

      jiallen
      hi andy
      you are asking a good question at one point i entered action.php in one of the boxs if this is what you mean but is this a seperate page below is the php scipt


      <?PHP
      $mailto = "info@the-bestbookshop.co.uk";
      $email = $HTTP_POST_VARS['email'];
      if ($email == "") {
      $email = $mailto;
      }
      $mailsubj = "Contact Form Submission";
      $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);
      ?>

      thanks for your help ivan
      Last edited by jiallen4729; 09-25-2007, 08:25 AM. Reason: add thank you

      Comment

      • Andy128
        Major General

        • Dec 2005
        • 2317

        #4
        Re: Help

        action is entered in the box of the form- that is true

        The script is entered into the thankyou page which in this case is called action.php

        Therefore, you need to make the thank you page and then place the php code into that page via properties>page html>place inbewteen the body tag

        Then name make sure it has .php as an extension and name the page action and then save and publish.

        Andy
        PS- please post a link to the tutorial you used.
        PHP- is a blast!

        Comment

        • jiallen4729
          Corporal

          • Sep 2007
          • 11

          #5
          Re: Help

          ijallen
          hi andy i think i am going mad ihave followed your info and i still get an error page the tutorial i followed is in the link from bv click menu in the bottom frame then i followed must read under neath although my boxes are not the same as the video

          any further sugestions
          cheers ivan

          Comment

          • Andy128
            Major General

            • Dec 2005
            • 2317

            #6
            Re: Help

            On your form you have action as cntact.php and it should actually be contact.php

            Change that and then save and publish again and see if it works. Spelling and not paying attention to capitals is a big source of errors.

            Andy
            PHP- is a blast!

            Comment

            • jiallen4729
              Corporal

              • Sep 2007
              • 11

              #7
              Re: Help

              Told You I Was Going Mad All Ineed Now Is For The Email To Acctualy Send And Arrive It Works From Outlook Both On Send And Recive Cheers
              Ivan

              Comment

              • Andy128
                Major General

                • Dec 2005
                • 2317

                #8
                Re: Help

                I take it that all is working as it should.

                Cheers-
                Andy
                PHP- is a blast!

                Comment

                • jiallen4729
                  Corporal

                  • Sep 2007
                  • 11

                  #9
                  Re: Help

                  great thanks for the help

                  ivan

                  Comment

                  Working...
                  X