Handling Special Characters with POST
Posted: Mon Mar 07, 2005 12:15 pm
Currently, I create hidden fields to retain key data. In <TEXTAREA> of form, I allow users to enter text descriptions. These descriptions may contain "trademarks" (i.e., ™).
The form action on submit is to call another php file where that file sets variables from the hidden fields via POST. The problem I see is that if any trademarks are entered into the <TEXTAREA>, the first hidden field defined after the <form> tag is not contained in the $HTTP_POST_VARS array. All other hidden variables are there, but the first one defined seems to be omitted. If no trademarks are entered, then the application works fine.
The error message is basically indicating that the hidden field is undefined. Any ideas on how to avoid this problem?
thanks
crandym
The form action on submit is to call another php file where that file sets variables from the hidden fields via POST. The problem I see is that if any trademarks are entered into the <TEXTAREA>, the first hidden field defined after the <form> tag is not contained in the $HTTP_POST_VARS array. All other hidden variables are there, but the first one defined seems to be omitted. If no trademarks are entered, then the application works fine.
The error message is basically indicating that the hidden field is undefined. Any ideas on how to avoid this problem?
thanks
crandym