开发者

HTML: upload-form in an other form

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 i开发者_如何学Ct or any other ideas to handle this?

I am using javascirpt and php also.

thanks and best wishes for 2011!

br,chris


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.


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


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜