944,196 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1073
  • PHP RSS
Apr 1st, 2006
0

help with script

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
benzspider is offline Offline
3 posts
since May 2005
Apr 5th, 2006
0

Re: help with script

What do you mean by browser preference? The browser they are currently using or some input they supply?
Reputation Points: 17
Solved Threads: 14
Posting Whiz
DanceInstructor is offline Offline
355 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: upload images and store the location in a database
Next Thread in PHP Forum Timeline: Do You Know Php Please Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC