Jump to content

Quick Question


nsarisk

Recommended Posts

I have wrote a php script that will email a form to a rewuested user.  At the end of the of the script i would like to give 10 seconds and have the php script take them to a specified web page.  Can anyone help here is the code that I am using

 

<?php

$msg = "

 

First Name:  $_POST[fname]

 

Last Name:  $_POST[lname]

 

Drivers License Number:  $_POST[dlnum]

 

State:  $_POST[state]

 

Social Security Number:  $_POST[social]

 

Home Phone Number:  $_POST[hnum]

 

Work Phone:  $_POST[wphone]

 

Cell Phone:  $_POST[cphone]

 

Mailing Address:  $_POST[mailadd]

 

City:  $_POST[city]

 

State:  $_POST[state2]

 

Zip Code:  $_POST[zip]

 

Physical Address:  $_POST[physicaladd]

 

City:  $_POST[city2]

 

State:  $_POST[state3]

 

Zip Code:  $_POST[zip2]

 

Email Address: $_POST

 

Do you have a prior service account?:  $_POST[prioracct]

 

Previous Account Number:  $_POST[preaccount]

 

Service is for?:  $_POST[service]

 

Are there any exixting utilities?:  $_POST[existutil]

 

Aproximate distance from existing line?:  $_POST[distance]

 

Do you want a security light installed?:  $_POST[security]

 

Easement Needed?:  $_POST[ease]

";

 

 

$mailheaders = "New Membership Application";

 

mail("[email protected]", $mailheaders, $msg);

 

 

 

echo "<H1 align=center>Thank You, $_POST[fname] $_POST[lname]</H1>";

echo "<P align=center>Thank you for filling out our online membership application.  A member

service representative will contact you as soon as possible.</P>";

?>

 

 

Thanks for your help

Link to comment
https://forums.phpfreaks.com/topic/44938-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.