Copyright © 2005-2008 Andrea Tincani

AndreaPHP | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Regular Expression for validating email addresses)Next Topic (www.shop-script.com Install?) New Topic New Poll Post Reply
AndreaPHP Forum : PHP General : goto command
Poster Message
ross96
Level: Protégé

Registered: 01-09-2005
Posts: 8

icon goto command

Is there a way I can make the page go to a different page on an If statement?

Thanks in advance

01-09-2005 at 03:53 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 16

icon Re: goto command

From some sites, it said there is no command like that... (you could possibly just call the function again from code, but never tried that).


____________________________
Everywhere's Local (pre-release), My company's website

02-09-2005 at 08:10 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
~Bean~
Level: Big Cheese


Registered: 07-04-2003
Posts: 22

icon Re: goto command

Javascript...

if (...) {
echo "<script>window.location='location.php';</script>"
}


and although META should be in the head I think it will work anywhere...

if (...) {
<meta http-equiv='refresh' content='0;URL=location.php >
}



and you can use 'header' safely if no other output has been sent to the browser...

if (...) {
header("Location:http://location.com");
}


[Edited by ~Bean~ on 02-09-2005 at 08:07 PM GMT]

____________________________
Eggheads unite! You have nothing to lose but your yolks.

03-09-2005 at 01:05 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 16

icon Re: goto command

I was thinking of "goto" in a slightly different fashion



____________________________
Everywhere's Local (pre-release), My company's website

03-09-2005 at 02:20 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
ross96
Level: Protégé

Registered: 01-09-2005
Posts: 8

icon Re: goto command

thank you!

05-09-2005 at 06:13 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaPHP Forum : PHP General : goto command
Previous Topic (Regular Expression for validating email addresses)Next Topic (www.shop-script.com Install?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: AndreaVB

Copyright © 2005-2008 Andrea Tincani

Powered by: tForum tForum Edition b0.92p1
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team.