Results 1 to 2 of 2
Thread: Adding timed Re-Direct
May 23, 2007, 01:12 #1
- Join Date
- Aug 2003
- Nr Leeds
- 0 Post(s)
- 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.');
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.
<?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.') ?>
May 23, 2007, 05:30 #2
- Join Date
- Aug 2004
- Manchester UK
- 127 Post(s)
- 3 Thread(s)
best bet would be a META REFRESH
<META HTTP-EQUIV=Refresh CONTENT="6; URL=http://www.domain.com/">Mike Swiffin - Community Team Advisor
The 2013 SitePoint Awards - Nominate your heroes now!
Only a woman can read between the lines of a one word answer.....