Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic form additions not retrievable by backend code

Status
Not open for further replies.

spperl

Programmer
Mar 29, 2005
34
GB
Hi,

I have a web form that has repeating sections that need to be persisted... these repeating sections are handled via AJAX so that the form is initially loaded it presents the minimum amount of information. When the 'add' button is clicked it will dynamically add another section to be filled within the existing form.

The problem I have is that when the additional sections are created dynamically the static document does not update to reflect therefore when I save the form the backend code has no reference to the additional fields created.

Do I need to create new elements? or nodes?

Any ideas or help would be appreciated.

Thank you.
 
If the form elements that you are creating do not have an ID that is already in use, are actually inside the form that is being submitted, and do not overwrite existing form elements with the same name, then you should have no problem picking up their values back-end.

Hope this helps,
Dan


Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top