SIMPLE html question

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
MiniMonty
Forum Contributor
Posts: 196
Joined: Thu Sep 03, 2009 9:09 am
Location: UK

SIMPLE html question

Post by MiniMonty »

Hi all,

The site I'm (slowly) building allows users to upload images - I want them to be able to choose
which gallery they upload to and I've written and upload and resize script for each gallery so I now have
portraits.php / landscapes.php / travel.php etc.,

So how do I code the font page (see picture) so that each radio button tells the submit button to run
the appropriate upload script? Or.... (please don't say it) do I need to use one script and pass a variable
to it from the radio button and send the pictures to the right place from there ?

All and any help much appreciated.
Best wishes
Monty

Image
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: SIMPLE html question

Post by Darhazer »

you can either use one script, which checks the radio button (I believe this is the better solution in your case) or you can use javascript to change the form's action.
Post Reply