Yup Mostly.. but I need to have more than 1 field name, so I'll need to keep field1 and field2. My working app has multiple fields on all pages. But ya'll started me on the solution.
The problem lies in this line:
<input type='hidden' name='field1' value='<? echo $field1 ?>'>
I originally had the value=' ' .. note the single quotes. So if there is another single quote inside the variable name, such as "duck's"... it looks at value='duck's'. And so keeps only duck, leaving everything else off.
I changed the above to look like this:
<input type='hidden' name='field1' value="<? echo stripslashes($field1) ?>">
note the double quotes for the value attribute. Also used the same syntax for the input field. And it works. 🙂
Thanks for the help!