Enter a number, download an image corresponding to the #

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
racoonfrenzy
Forum Newbie
Posts: 1
Joined: Thu Jan 31, 2013 9:09 pm

Enter a number, download an image corresponding to the #

Post by racoonfrenzy »

Im looking for help on what should be a relatively simple code.

It could be written in html, but it would't have any security aspect to it...

I am trying to make a form where you enter a 4 digit number corresponding to an image on the server and click submit and it starts a download for an image file located on the server.

Alternatively it redirect you to the image, without downloading.

I havent been able to find any info on this. I would appreciate any help with this.

Thanks everybody, its greatly appreciated.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Enter a number, download an image corresponding to the #

Post by requinix »

And what security are you worried about? When you redirect to the image the user will see the URL and they can do whatever they want with it anyways.
Post Reply