Welcome to WebmasterWorld Guest from 107.20.54.98

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Send user to URL

If statement

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

Preferred Member

10+ Year Member

joined:Apr 1, 2005
posts:369
votes: 0


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!
6:47 am on Oct 19, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Apr 30, 2007
posts:1394
votes: 0



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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members