[UPHPU] nested forms

jtaber jtaber at johntaber.net
Sun Jun 11 07:59:22 MDT 2006


Got it - thanks.   btw, now to return to the original form, right now
I'm saving the form vars to a session array, then passing the orig url
to the 2nd form code so it knows where to return to - is that the best
php way ? 

Josh Jeppson wrote:
> 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
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
>



More information about the UPHPU mailing list