You can use header() for that...just don't display anything before you redirect them.
Otherwise you need a client side solution like a META REFRESH ---John Holmes... > -----Original Message----- > From: Jennifer Downey [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 5:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Redirect > > Hi to all, > > I am wondering if there are other ways to redirect users other than using > header()? > > I have a script that if the user doesn't have enough money to buy an item > then it directs to one page and if they do then it directs them back to > the > referring page. > > Is this possible? > > > Thanks > Jennifer > > -- > The sleeper has awaken > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php