Posting data from a form that was dynamically generated using PHP and loaded via ajax
Posted on 2012-08-10
I've encountered a strange issue where data from a dynamically generated form isn't being POSTed.
I have some links labeled "Add Note" in my web app, and when they're clicked, an ajax function gets triggered which loads a dynamically generated (and JSON encoded/decoded) web form into a DIV directly underneath that link.
The form that's loaded & displayed is complete -- with both opening and closing form tags -- and consists of valid XHTML. I've also made certain that the dynamically generated form isn't nested inside of another form. But it appears that no matter what -- when that form gets submitted, ... none of the data actually gets POSTed, and I can't for the life of me figure out why.
Does anyone here know why this is happening, and what I need to do to fix it?
Thanks in advance,