Click to See Complete Forum and Search --> : Form with Euro € symbol in text


gizmo
09-25-2003, 01:30 PM
I have a form with a text input as follows:
<INPUT class="forms" NAME="minval" TYPE="text" VALUE="Euros " SIZE="25">
I would like to replace the word "Euros" with the euro symbol €. If I do will it be available to all, or it a Windows/M$ thing?

Charles
09-25-2003, 01:35 PM
<input type="text" value="&amp;euro;">

gizmo
09-25-2003, 02:10 PM
Thanks for that Charles. Now at the risk of being on the wrong forum, if the php that services the form is coded to remove user html input will is remove the &euro; part also ?

Charles
09-25-2003, 02:18 PM
Originally posted by gizmo
Thanks for that Charles. Now at the risk of being on the wrong forum, if the php that services the form is coded to remove user html input will is remove the &euro; part also ? Give it a try and let me know.

pyro
09-25-2003, 02:46 PM
It depends how you are removing the HTML input. If you use htmlspecialchars (http://us4.php.net/manual/en/function.htmlspecialchars.php), it will indeed format it to &amp;amp;euro; which will cause it to display as &amp;euro; rather than &euro; on your pages....

gizmo
09-25-2003, 02:59 PM
Thanks Pyro, that's answered my question.:)

pyro
09-25-2003, 03:11 PM
Happy to help... :)