+ Reply to Thread
Results 1 to 9 of 9

Thread: Help
      
   

  1. #1
    jiallen4729 is offline Corporal
    Join Date
    Sep 2007
    Posts
    11

    Exclamation 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

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

    Default 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!

  3. #3
    jiallen4729 is offline Corporal
    Join Date
    Sep 2007
    Posts
    11

    Default 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 at 09:25 AM. Reason: add thank you

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

    Default 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!

  5. #5
    jiallen4729 is offline Corporal
    Join Date
    Sep 2007
    Posts
    11

    Default 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

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

    Default 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!

  7. #7
    jiallen4729 is offline Corporal
    Join Date
    Sep 2007
    Posts
    11

    Default 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

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

    Default Re: Help

    I take it that all is working as it should.

    Cheers-
    Andy
    PHP- is a blast!

  9. #9
    jiallen4729 is offline Corporal
    Join Date
    Sep 2007
    Posts
    11

    Default Re: Help

    great thanks for the help

    ivan

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