View Full Version : dont know wher i went wrong PLEASE HELP

07-24-2007, 06:29 PM
i have just spent 3 hours doing a feedback form on my site this is where it is: www.bigbdisco.co.uk/feed_back.html (http://www.bigbdisco.co.uk/feed_back.html) it will not do anything can some one tell me where i have gone wrong,

i followed the 2 videos that are provided

07-24-2007, 06:43 PM
post the code your are using on action.php

07-24-2007, 06:51 PM
this is what they say to put in the page:

$mailto = "exampleemail@example.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
$mailsubj = "Type your mail 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))
if ($key!="submit")
$mailbody .= "$key : $val\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);

07-24-2007, 08:52 PM
And this is correct. However, REPLACE the parts in blue with your own email address, as well as the desired subject and start of message, and then save/republish/refresh browser / test

07-24-2007, 10:03 PM
The code is correct as Naval has stated- simply make the changes he pointed out in the php code. However your action is listed on the form as:
"http: //www.mycontactform.com/sendform/sendform.php (http://www.mycontactform.com/sendform/sendform.php)"

while you have an action.php page. Additionally- there is no subfolder - sendform that I can see.

So- I would make the action on the form action.php then save and re-publish. Then test the form and post back.