Page 1 of 1

redirect for one url

Posted: Mon Feb 24, 2003 2:48 pm
by molandim
Hi, I want do a script that have a conditional , and if true send the user to one url..... HOW i do that ??? a rediretc...

Posted: Mon Feb 24, 2003 3:11 pm
by bionicdonkey

Code: Select all

<?php
if( condition ) {
  header("Location: http://www.example.com/");
  exit;
}
?>