Page Redirects

Some times you want to redirect your site visitors to a different page. e.g.

  • When a user logins
  • On successfull submission of form data
  • Redirect a user away from a page if they do not have the rights to access that page (page security)
  • Ensure that the put header command is performed beforer any content is sent to the browser, this needs to be the item the page outputs.
put header "Location:" 

Leave a Reply