[UPHPU] nested forms
Josh Jeppson
uphpu at josh.jeppsons.org
Sat Jun 10 23:08:41 MDT 2006
On 6/9/06, jtaber <jtaber at johntaber.net> wrote:
>
> I have a form that has a select control loaded from another table. Next
> to the select control is a new link tag that leads to another form to
> enter a new record for the select list table. Thus, a nested form.
> Once the select item is added to that table, the user should be returned
> to the original form with the updated select list.
>
> I can't quite get this to work and in a google search all I see is that
> I can't have nested forms. Any ideas or links on how to handle this
> issue.
>
You can't have nested <form> tags like:
<form action='foo'>
<form action='bar'>
<submit>
</form>
<submit>
</form>
However, if I understand you correctly you are trying something like the
following:
<form action='foo'>
<select>
<option>bar</option>
<option>baz</option>
<option>chu</option>
</select>
<a href='new'>add select item</a>
<submit>
</form>
This is perfectly legal. Perhaps if you posted some code scraps?
- Josh
More information about the UPHPU
mailing list