Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
August 24, 2006, 8:14 am
rate this thread
I have a form that allow user to enter description , sometimes the
description value have html special character for example %20 and etc.
Inserting into the mysql database is ok , for example the description
in my table is 'wt%20%20'.
However . when i have href link which for instance
The mysql database cannot find the id in the table eventhough it
existed in the table.
How to overcome this special character issue ?
Re: html special character in the when submit form
Some characters like % have a special meaning in URLs. You must escape any
text that you add to a URL, just as you do when you insert text into SQL or
HTML. In this case, the function is rawurlencode().
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com