Jump to content

emerson5000

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by emerson5000

  1. Superfast responses! Thanks to all! tomtimms, Once a user submits the form, I'd like to redirect them to the index page straight away. I'm still doing something incorrectly. I added line 17 shown below but it doesn't redirect. Emerson ________________________________ <? $subject="from ".$_GET['name']; $headers= "From: ".$_GET['email']; $headers.=$_GET['phone']. "\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; mail("myname@company.com", $subject, " " ."Name: " .$_GET['name']." " ."Phone: " .$_GET['phone']." " ."Email: " .$_GET['email']." " ."Message: " .$_GET['message']." header('location: http://www.company.com/index.html'); </body> </html>" , $headers); echo ("Your message was sent!"); ?> <script> ___________________________________
  2. Using the php form script below, I'd like the script to return the user to the original form page after they submit the form. Thx, Emerson _________________________________ <? $subject="from ".$_GET['name']; $headers= "From: ".$_GET['email']; $headers.=$_GET['phone']. "\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; mail("name@company.com", $subject, " " ."Name: " .$_GET['name']." " ."Phone: " .$_GET['phone']." " ."Email: " .$_GET['email']." " ."Message: " .$_GET['message']." </body> </html>" , $headers); echo ("Your message was sent!"); ?> <script> ___________________________
×
×
  • 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.