Re: file uploads with other form input, too

From: Date: Sun, 17 Dec 2000 21:48:43 +0000
Subject: Re: file uploads with other form input, too
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30779@lists.php.net to get a copy of this message
On Sat, 16 Dec 2000, Ron Newman wrote: > OK, now that file uploads work using: > > <FORM ACTION="filename" METHOD=POST> > etc., > > how do you include this as part of a larger form, where the user inputs a > bunch of data, along with a file name, and sends it all with one button click? > > With the ACTION parameter taken by the filename, there's nothing to allow > posting a form to a specific handler. > > I tried nesting the file upload form within a text input form, but that > didn't work. > HTTP doesn't work that way. Everything gets sent to one handler, which is determined by which form contains the element that submitted the form. You can't nest forms; the form behavior is undefined if you do that. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#30779) next »