0

I have a little problem with an upload-form within an other form (call it data-form). I know it is not possible to put a form into an other.

So I would need to put it after my data-form.

But I need the upload-form controls in the middle of my data-form because of optical and structural reasons. The file-upload should also perform other actions and not the same than the data-form.

So any idea how can I make the upload-form after my data-form but visible in it or any other ideas to handle this?

I am using javascirpt and php also.

thanks and best wishes for 2011!

br,chris

chris01
  • 9,483
  • 8
  • 45
  • 75

3 Answers3

0

I know it is not possible to put a form into an other.

Nesting HTML forms is not valid HTML and results into undefined behavior which could vary between browsers. Here's a similar post.

Community
  • 1
  • 1
Darin Dimitrov
  • 994,864
  • 265
  • 3,241
  • 2,902
0

You could leave some space in your design and then nest the form (visually) in the other one with CSS and absolute positioning..

Gabriele Petrioli
  • 183,160
  • 33
  • 252
  • 304
0

Apart from position: absolute that might work depending on your layout, I had the idea of using a Flash based uploader like SWFUpload. That process works separately from the surrounding form. However, it creates a dependency on Flash and does not degrade gracefully (i.e. if Flash is not present, it does not work at all).

Pekka
  • 431,103
  • 135
  • 960
  • 1,075