Welcome to WebmasterWorld Guest from 54.221.87.97

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Send user to URL

If statement

     

Adam5000

6:35 am on Oct 19, 2010 (gmt 0)

10+ Year Member



I'm trying to send a user to a new page using an IF statement.

It looks something like this.

<?php

$a=oranges

if($a==oranges)
{
Send user to www.homepage.com
}

?>

Help!

enigma1

6:47 am on Oct 19, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member




<?php
$a=oranges;
if($a==oranges)
{
header("location: http://www.example.com");
exit();
}
?>