Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-31-2007, 03:47 PM   PM User | #1
cyphix
Regular Coder

 
Join Date: Apr 2004
Posts: 682
Thanks: 24
Thanked 1 Time in 1 Post
cyphix is an unknown quantity at this point
How to generate fields by user selection

Hey guys..... I want to put some upload boxes on a page (<input type="file">) & I want the user to be able to select with a select field how many they need; by default the page will display one field & I will be supplying them with a select field where they can pick between 1 & 20 to show..... I can figure out how to add them ok; but it's just I'm having trouble with what if the user changes the amount (sure you can just re-generate the fields) but I don't want to lose the user data that was entered in already if they change the amount after they have selected some files to upload already...

Not sure if it matters but all the fields will have the same name as they will be part of an array.... (filename[]).

Appreciate any help!
cyphix is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:40 AM.


Advertisement
Log in to turn off these ads.