nsarisk Posted March 30, 2007 Share Posted March 30, 2007 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 More sharing options...
nsarisk Posted March 30, 2007 Author Share Posted March 30, 2007 I have solved the redirect problem with a html statement before the script. My new question is how can I have a copy sent to the persons email address that is inputted into the form Link to comment https://forums.phpfreaks.com/topic/44938-quick-question/#findComment-218219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.