4

Possible Duplicate:
Can you nest html forms?

Is it a bad practice to have something like this?:

<form method="post">

<form method="post">
</form>

</form>
Community
  • 1
  • 1
alexchenco
  • 47,739
  • 69
  • 219
  • 389

3 Answers3

4

Yes. Very much so. And it won't work properly. I would restructure the page to make sure it doesn't have it nested..

M.R.
  • 4,551
  • 2
  • 30
  • 75
1

It is completely invalid markup - it will break in various painful, interesting and different ways in various browsers. Is it bad practice to write invalid HTML? (hint: yes, it's a Bad Idea) Even if you don't give a rat's ass about valid HTML, is it bad practice to write HTML which is almost certain to give your users incorrect behavior? (hint: yes, it's a Bad Idea, unless you passionately hate your users)

Piskvor left the building
  • 87,797
  • 43
  • 170
  • 220
0

I'm pretty sure that will never work as expected properly. 100% bad practice as far as I know / am concerned.

stevecomrie
  • 2,156
  • 17
  • 25