468,512 Members | 1,526 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Add additional fields to a form

Hi, I would like for users to check a box within a form to add more fields.

I have a simple form for scheduling deliveries but I need it to work a bit harder! The form caters for 1 palet of goods where the user can add the weight and dimensions of the pallet. I would like now to have the form handle up to 10 pallets, but only add more fileds when the user selects a "add more fields" type option. The database I use is SQL and I have added 10 additional tables to handle the requirements.

I have no idea how this could be done so any guidance would be appreciated.
Many thanks.

Scott
Oct 11 '10 #1
1 1527
jhardman
3,405 Expert 2GB
I've seen probably three ways to handle this issue, only one of those requires server-side scripting (asp for example). That approach is to perform some action (like a button-click) that sends a form back to the server, and the asp script re-builds the form with more fields.

Nowadays I see more people use javascript-based approaches. Either have javascript create new fields in runtime or have the extra fields hidden until needed.

Let me know if any of this helps or if it has at least helped you kn ow the way to go.

Jared
Oct 11 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.