View Full Version : A form within another form

12-21-2005, 10:27 PM

I would like to have a form like this:

Name: ________
Blah: _________
Image: _________ |Select File Image on server|
Blah2: _________

The only way I found to do this is to have a form (for the selection of file) within another form (the main form all the data). But I found that it is not possible to include a form within another form. Another solution would be to pass the file selection either to the top of the data or to the bottom so I separate the forms but the order in this case is important and I can't do that. So I wonder if someone have a solution to my problem. In fact the file selection should open a new window showing the differents images uploaded to the server and then after selection should update the Image name input tag.

Thanks for your time.

12-22-2005, 06:28 PM
The is possible with only one form, but you'll have to use the enctype attribute of the form tag, this article should help you out.