[jQuery] Using Jquery Form Plugin with Hidden fields

[jQuery] Using Jquery Form Plugin with Hidden fields


Hi,
I am using the jquery form plugin and I am very surprised that it
doesn't post hidden field values to my php file.
I need
<form id="newTagForm" action="ajax-add-tag.php" method="post">
    <fieldset>
        <input type="hidden" id="resourceID" name="resourceID" value="" />
        <input type="text" id="usertags" name="usertags" value="" />
        <input type="submit" id="addtag" name="addtag" value="Add" />
    </fieldset>
</form>
Need to receive it like:
    $tagsString         = makeDataSafe($_POST['usertags']);
    $resourceID         = makeDataSafe($_POST['resourceID']);
At the moment I've turned the hidden field into a text field and I'm
hiding it. Is there a better way?
James