I have this application that does the following:
1.) It has clients fill out a form.
2.) Then on the next page that form's values are displayed.
3.) Those values are then passed to the next page in hidden fields.
4.) From there they are e-mailed.
My problem comes at #3 where I put the values into the hidden fields. This works absolutely perfect when there are no double or single qouotes in any of the values, but if there are, it causes problems. What happens is after the values are put in a hidden field and passed to the last page (e-mail script) in that process everything after the quotation marks are deleted (most common) or half of it is in the hidden field the other half is printed on the screen.
It seems like i've tried everything from stripslashes(), htmlspecialchar(), trim(), and more all at once, by themselves, or any other combination I can think of.
Can anyone show me a page or some code where they can pass a value from page 1 to page 2 and from there put values in a hidden field and then pass them to a third page without corrupting the data?
Thanks in advance this has been a thorn in my side,
Ben