Closed Thread
Results 1 to 3 of 3

Thread: Goto command in PHP

  1. #1
    Member Daniel Hollands is an unknown quantity at this point
    Join Date
    Jan 2001
    Location
    London, England.
    Posts
    39

    Thumbs up

    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
    Daniel Hollands
    The Eerie Network

  2. #2
    Pro Member Woofcat is an unknown quantity at this point Woofcat's Avatar
    Join Date
    Nov 2000
    Location
    Chicago
    Posts
    286
    There is no goto...

    To redirect, use:

    header('Location: http://www.whatever.com/');
    Es ist nicht leicht ein Gott zu sein

  3. #3
    Member Daniel Hollands is an unknown quantity at this point
    Join Date
    Jan 2001
    Location
    London, England.
    Posts
    39
    Thank you, nice and simple answer, just the way I like them.
    hehehe
    Thanx again.
    Daniel Hollands
    The Eerie Network

Closed Thread

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