help with script

Reply

Join Date: May 2005
Posts: 3
Reputation: benzspider is an unknown quantity at this point 
Solved Threads: 0
benzspider benzspider is offline Offline
Newbie Poster

help with script

 
0
  #1
Apr 1st, 2006
trying to create a script that will redirect user to a new webpage based on the user's browser preference.


dont know if this script is right is the write way to write one


<? php

header ('location: http://www.yahoo.com/' http://www.msn.com/' http://www.ask.com/' ) ;

? >

or

<?

header ( "location: $_post [location]"); exit;

?>

thanks
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: help with script

 
0
  #2
Apr 5th, 2006
What do you mean by browser preference? The browser they are currently using or some input they supply?
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC