I hope I can explain my problem adequately; I'll do my best.
At the moment I have a form on a content management page with inputs for a number of things, such as "Name", "Description", "Image", etc. etc. that submits to a PHP page for database addition as follows:
<form action="processContent.php?action=addContent" method="post" enctype="multipart/form-data" name="frmAdd" id="frmAdd" >
Anyway, this obviously works fine and without any problems, but here's where my problem comes in. In this form is a section for "Categories", where all of the categories are pulled from the database and the categories that this item will be added to are selected using checkboxes. Now, I need functionality to add a new category to the database on this same page and am using Ajax to do this (kinda like a shoutbox-type thing). This works fine when on a separate page, but when added into the middle of the big form, I suddenly have a form (from the Ajax category addition) within the big form, and everything goes haywire.
Does anyone understand what I'm getting back and have any suggestions as to what I could do? (Ajax without a form? Submit one using javascript?)
Thanks a lot in advance.