PDA

View Full Version : Help



jiallen4729
09-24-2007, 07:20 PM
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 (http://www.the-bestbookshop.co.uk)

Andy128
09-25-2007, 12:33 AM
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

jiallen4729
09-25-2007, 08:13 AM
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

Andy128
09-25-2007, 04:38 PM
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.

jiallen4729
09-25-2007, 06:12 PM
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

Andy128
09-25-2007, 06:42 PM
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

jiallen4729
09-25-2007, 07:04 PM
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

Andy128
09-25-2007, 09:50 PM
I take it that all is working as it should.

Cheers-
Andy

jiallen4729
09-26-2007, 06:59 AM
great thanks for the help

ivan