I have a div called content and I have links that load different files and replace the content.innerHTML once loaded so that keeps changing.

Now in share.php I have a form but if I try to post through it, it loads the actual page all over, not the content part.

I can't figure out how to use a form within the file that is being loaded into the content div.

Any ideas?