PDA

View Full Version : Goto command in PHP



Daniel Hollands
January 30th, 2001, 18:23
Do you know if there is some type of goto command in PHP, like there is in VB and basic?

if not like this, then do you know of a website forwarding command, so that if after an if statement on the page, the requirements are not for filled, the user to directed automatically to another page?

I hope you understand what I’m asking, I’m good as confusing people :)

Woofcat
January 30th, 2001, 19:32
There is no goto...

To redirect, use:

header('Location: http://www.whatever.com/');

Daniel Hollands
January 31st, 2001, 12:09
Thank you, nice and simple answer, just the way I like them.
hehehe
Thanx again.