delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

I've tried looping through an array of the form.fieldnames but that didn't work. I also tried using the #FORM# as a collection and looping through that, but still get only the static fields.
Thanks!


I used jQuery to dynamically add form values. However, because of this I'm having a hard time outputting them after someone submits the form. They don't show up at all. I've scowered the internet trying to find a solution but nothing seems to work.
And I have created a unique name and id for the added fields (one text, one dropdown).
Any help on what to do/where to look?
I've tried looping through an array of the form.fieldnames but that didn't work. I also tried using the #FORM# as a collection and looping through that, but still get only the static fields.
Thanks!

TOP

could you post your code ?

TOP


Originally Posted by tearacer
I used jQuery to dynamically add form values. However, because of this I'm having a hard time outputting them after someone submits the form. They don't show up at all. I've scowered the internet trying to find a solution but nothing seems to work.
And I have created a unique name and id for the added fields (one text, one dropdown).
Any help on what to do/where to look?
I've tried looping through an array of the form.fieldnames but that didn't work. I also tried using the #FORM# as a collection and looping through that, but still get only the static fields.
Thanks!
When you add fields to a form dynamically you have to make sure that the opening and closing form tags aren't inside table tags, or else the new fields won't show on the submit...
For example this is correct...
<form>
<table>
<tr><td></td></tr>
</table>
</form>
This is incorrect...
<table>
<form>
<tr><td></td></tr>
</form>
</table>
If you do the second way, dynamically created elements won't submit

TOP


Originally Posted by Dameon51
When you add fields to a form dynamically you have to make sure that the opening and closing form tags aren't inside table tags, or else the new fields won't show on the submit...
For example this is correct...
<form>
<table>
<tr><td></td></tr>
</table>
</form>
This is incorrect...
<table>
<form>
<tr><td></td></tr>
</form>
</table>
If you do the second way, dynamically created elements won't submit
Thanks! That worked and solved my problem!



I've tried looping through an array of the form.fieldnames but that didn't work. I also tried using the #FORM# as a collection and looping through that, but still get only the static fields.
Thanks!

TOP

Back Forum