I’m using the following code for search:
if(isset($_POST['btnFinnBaat'])) { $url = 'http://www.finn.no/finn/boat/used/result?sort=0&keyword='. urlfix2($_POST['finn']); } The problem is that the website I refers to has a mobile phone website and redirects directly to this website with a different url for mobile phones. What I need is an if code to give a second option for mobile phones with the option 2 to give right url for mobiles and tablets, without having to make a whole New website just for mobile phones.
To see the problem: Website: dinstartside.no >> do a search with finn (blue logo) and search for "Toyota" >> use "Bil" button (Cars)
With all the PC browsers it works fine, but not with a mobile or tablet.
Anyone?