Announcement

Collapse
No announcement yet.

Edit my HTML/PHP script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Edit my HTML/PHP script

    Can someone help me to add a line to this script that enables the user to return to my home page after submitting? This is how my php page currently reads, and where it says "Your Story has been submitted. Thank you." I'd like a link to return to the index.html page. My site is www.lifeatfifty.com. Thank you.

    <HTML>

    <HEAD>

    <TITLE>Succesfully Submitted</TITLE>

    </HEAD>

    <BODY>

    <H2>Your Story has been submitted. Thank you.</H2>

    <?PHP

    $email = $HTTP_POST_VARS[email];

    $mailto = "lifestories@lifeatfifty.com";

    $mailsubj = "Life Stories Submission";

    $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>

  • #2
    <META HTTP-EQUIV="Refresh" Content="5; URL=index.html">

    Paste this after your code. You can change the redirect time in the code. it currently stands at 5secs see the RED section above.

    hope this helps
    Ruth

    http://www.okose.com
    Professional Web design/development and Graphic Design

    Comment


    • #3
      Php

      Thank you Ruth, that worked great!

      Originally posted by rdarko
      <META HTTP-EQUIV="Refresh" Content="5; URL=index.html">

      Paste this after your code. You can change the redirect time in the code. it currently stands at 5secs see the RED section above.

      hope this helps

      Comment

      Working...
      X