Download button redirect based upon device

fheaky

Power Member
May 3, 2010
682
336
Hey guys,

I was wondering whether it was possible to add a code to a download button so that it redirects users upon them clicking the download button to a certain link based upon their device.

I want people with all devices that do not run windows to go to link A
And people who do run windows to go to link B

Would it be possible to do this?
 
yupp that's definitely doable. If you are using php, this would solve your problem:
Code:
http://stackoverflow.com/a/18070424/1437261
 
yupp that's definitely doable. If you are using php, this would solve your problem:
Code:
http://stackoverflow.com/a/18070424/1437261

Thank you. But I don't really understand coding, it's never really been my thing. All I understand from that is that they explain how the operating system in retrieved from the browser, but I really can't figure out how to implement it into a download button to make windows go to link A and all others to link B.
 
^^ No spoonfeeding. Learn basic php, or outsource it :D
 
It can be done with php. There is a php code out there. I can't remember the site name so you gotta search for it on google.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock