In an effort to serve excellent image files to only legit guests of my site, I needed to make PHP code. I narrowed the problem down to a few lines of code as follows:
The first piece is a simple web form with one button that takes a user to another section of the site (the actual image) via the POST method (so hackers have a harder time requesting the images). Anyways heres that code:
<form method="post" action="dltestb.php"> <div> <input class="a b" type="submit" value="DL"> </div> </form>
The following PHP file is the dltestb.php file in the same folder as the form.
When the user selects the button, the download should start or the user should be asked to download the image. This works with my old opera browser and firefox 45 browser on my computer. It also works on chrome 35 for my tablet, however some of my website guests on mobile are unable to download images and code execution is the same (with the exception of the output filename). I also could not use it with the default browser on my tablet.
Is there something in these new browsers that I need to be aware of that is preventing my script from successfully working?