redirect for one url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
molandim
Forum Newbie
Posts: 19
Joined: Thu Feb 20, 2003 11:33 am
Location: Brazil
Contact:

redirect for one url

Post 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...
bionicdonkey
Forum Contributor
Posts: 132
Joined: Fri Jan 31, 2003 2:28 am
Location: Sydney, Australia
Contact:

Post by bionicdonkey »

Code: Select all

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