Re: submitting two forms on one page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adil wrote:
Hey everyone,  I'm having issues with a couple of forms that exist on one
page.  Basically what I'm trying to do is the following:

Select a client from a dropdown select box(submit inner form). Based on
that, another select menu appears that retrieves a list of projects based on
the client selected.  Then you choose a file and upload it(submit the outer
form) which uploads the file and adds the file entry under the client
project table selected in the 2nd dropdown.

The problem is that the outer form works fine, but the inner form that
dynamically retrieves the client project list doesn't refresh the page or
post so the project list never shows up.  I've listed some code below.


Forms can't be nested. From your description it looks like the best way is to use 2 forms, each on a separate page.


Another way is to use a form that posts to itself, but the action is not taken until a project is selected and a file is uploaded.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux