Input field added through javascript not in PHP $_POST variable. How to fix this?

后端 未结 1 1146
执笔经年
执笔经年 2021-01-28 22:46

I have a form inside an html table.

I am dynamically adding input fields to a form through jquery. When I took var dump while submitting the form, the $_POST array does

相关标签:
1条回答
  • 2021-01-28 23:32

    The HTML is invalid.

    You cannot have a form inside a <table> but outside a <td> or <th> that is part of that table.

    Some browsers error correct by moving the form somewhere it is valid (while leaving all the controls behind).

    Use a validator to find this sort of markup error.

    0 讨论(0)
提交回复
热议问题