Wednesday, April 4, 2012

Form elements added by jquery not getting on the submit page - Fixation

I had a form and some of the form elements are adding to it dynamically by jquery. But when submitting the form I am not getting the fields added by jquery in $_POST or $_GET.

After a long searching I found that, it was due to the form element was inside some nested div. I placed the form start before the div start tag and form end after the div end tag. Now the problem solved.

So please check the form tag is correctly placed before any table or div tags.

No comments:

Post a Comment