PDA

View Full Version : E-mail form problems



prosper
10-06-2005, 05:27 AM
The following php script is in my public.html folder. 3 problems.
1. I do not recieve the information to my e-mail from the form
2. Once the form is filled in, it redirects me to the index.php page but not back to the main page.
3. By clicking the browsers back button, I can return to the main page but the form still has the filled information. It is not re-setting itself.


I AM USING THE FORM RIGHT ON THE MAIN(INDEX PAGE OF MY SITE). IT IS NOT ON A SEPERATE PAGE.

Can someone help me figure this out. Thanks


<HTML>
<HEAD>
<TITLE>Thank You for requesting an Interview</TITLE>
</HEAD>
<BODY>
<H2>Thank You for requesting an Interview</H2>
<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "mchurchill@prosperityourway.com";
$mailsubj = "contact us form";
$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>
</HEAD>

VodaHost
10-07-2005, 01:11 AM
please visit the below thread to learn more about forms

http://www.vodahost.com/vodatalk/showthread.php?t=246&highlight=forms

prosper
10-07-2005, 04:19 PM
Is there anybody out there who can help me???? Here's what I need to do.....
1. Have the subscriber fill in the form for the information
2. press the "contact us" button and then a pop up would come up saying "thank You for your request". Without leaving the index page and no security warnings popping up after they hit the button.
3.the form would then be cleared and the information would be sent to our e-mail in outlook express.

PLEASE, PLEASE, SOMEONE HELP US we are not getting it and we've tried everything we can think of including reading all tutorials several times. Anybody have a script.

VodaHost
10-07-2005, 10:49 PM
Listen mate....what you are asking requires a bit of Java , your best bet is to google it. You will find plenty of free script that will take care of this need.