SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    Nr Leeds
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding timed Re-Direct

    I would like to add a timed re-direct to a page which has a form. When the form is filled in, assuming it is successful, due to the code below they are given the following message :

    [strong]define('TEXT_SUCCESS', 'Your diet request has been successfully sent to the team. Your details will be assessed by one of our resident experts and a your diet sent in response as soon as possible. Thank you.');
    [/strong]

    What i would like is for the above message to be displayed for around 5-6 seconds, then the user re-directed to a new page. How can i do this ?

    Below is the full code of the page.

    Thanks




    Code:
    <?php
    /*
      $Id: contact_us.php,v 1.2 2004/03/05 00:36:42 ccwjr Exp $
    
      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com
    
      Copyright (c) 2002 osCommerce
    
      Released under the GNU General Public License
    */
    
    define('HEADING_TITLE', 'Personalised Diets');
    define('NAVBAR_TITLE', 'Personalised Diets');
    define('TEXT_SUCCESS', 'Your diet request has been successfully sent to the team. Your details will be assessed by one of our resident experts and a your diet sent in response as soon as possible. Thank you.');
    define('EMAIL_SUBJECT', 'Diet Request ' . STORE_NAME);
    define('ENTRY_NAME', 'Full Name: ');
    define('ENTRY_EMAIL', 'E-Mail Address* (Essential Info): ');
    define('ENTRY_CURRENT_DIET', 'Please outline your current diet with as much detail as possible: ');
    define('ENTRY_OCCUPATION', 'Occupation? (for activity level purposes): ');
    define('ENTRY_AIMS', 'What are your dietary aims? ');
    define('ENTRY_CURRENT_EFFECTS', 'What are the effects of your current diet? ');
    define('ENTRY_OTHER_EFFECTS', '');
    define('ENTRY_AGE', 'Please enter your age: ');
    define('ENTRY_GENDER', 'Your Gender: ');
    define('ENTRY_RATE', 'At what rate does this occur? ');
    define('ENTRY_OTHER_RATE', '');
    define('ENTRY_TRAINING', 'Please outline any training or exercise you undertake in as much detail as possible:');
    define('ENTRY_HEIGHT', 'Your Height: ');
    define('ENTRY_WEIGHT', 'Your Weight: ');
    define('ENTRY_BODYFAT', 'Your Body Fat % (if known): ');
    define('ENTRY_BODYWEIGHTAIM', 'Your Body Weight Aim: ');
    define('ENTRY_ALLERGY', 'Do you have any food dislikes or allergies?   Please detail below: ');
    define('ENTRY_OTHER_AIMS', '');
    define('ENTRY_CONSENT', 'If you would be willing to help us monitor the success of our diet plan service please tick this box. Within 1 month of receiving your diet you will be sent a link to a very short survey (approximatley 10 yes/no questions).Thank you.')
    ?>

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    best bet would be a META REFRESH
    Code:
    <META HTTP-EQUIV=Refresh CONTENT="6; URL=http://www.domain.com/">
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


Bookmarks

Posting Permissions

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