Results 1 to 3 of 3

Thread: Edit my HTML/PHP script
      
   

  1. #1
    Join Date
    Jul 2005
    Posts
    95

    Question 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. #2
    Join Date
    Jul 2005
    Location
    UK
    Posts
    172

    Post

    <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

  3. #3
    Join Date
    Jul 2005
    Posts
    95

    Thumbs up Php

    Thank you Ruth, that worked great!

    Quote 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Affiliate Track Software (script)
    By VodaHost in forum eBusiness and Concept Development Talk
    Replies: 8
    Last Post: 01-12-2006, 02:07 PM
  2. Please help with my PHP script
    By wgreene in forum mySQL & PHP
    Replies: 1
    Last Post: 10-07-2005, 12:14 AM
  3. Java script problems
    By cdenton1234 in forum BlueVoda - General Issues
    Replies: 1
    Last Post: 07-22-2005, 07:06 AM
  4. long script
    By vinny1957 in forum Adding Elements To Your Website
    Replies: 1
    Last Post: 06-21-2005, 11:29 PM
  5. java script box
    By vinny1957 in forum BlueVoda - General Issues
    Replies: 5
    Last Post: 06-17-2005, 08:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •