SimonMc
10-06-2004, 04:22 PM
I have a pHP script that processes an order form on my site. The problem I have is when someone fills out the order form using say a polish character set I get stuff like this come through
Szántó
Any Idea how I can correct this?
Thanks for looking.
Simon
Saeven
10-07-2004, 12:16 AM
You don't want those characters?
SimonMc
10-07-2004, 02:10 AM
Originally posted by Saeven
You don't want those characters?
Sorry....the forum software has corrected it. It was:
S z & a a c u t e ; n t & o a c u t e ;
Remove the spaces. What the forum software did is actually what I would like my Form processor to do and that is to correct these characters so I can actually read them.
Any ideas?
Simon
gogocode
10-07-2004, 04:42 AM
Originally posted by SimonMc
Sorry....the forum software has corrected it. It was:
S z & a a c u t e ; n t & o a c u t e ;
Remove the spaces. What the forum software did is actually what I would like my Form processor to do and that is to correct these characters so I can actually read them.
Any ideas?
Simon
There is a bug in your script, it's doing htmlspecialchars/htmlentities or a varient thereof twice on the same data somewhere.
SimonMc
10-07-2004, 07:12 AM
Originally posted by gogocode
There is a bug in your script, it's doing htmlspecialchars/htmlentities or a varient thereof twice on the same data somewhere.
I have this entry but only once:
$body .= htmlentities($_POST['email']);
Does this give a clue? I do not have htmlspecialchars anbywhere.
Simon
webshome
10-07-2004, 08:02 AM
hi there,
you must check htmlspecialchars in your script
Regards
webshome
SimonMc
10-07-2004, 11:38 AM
Originally posted by webshome
hi there,
you must check htmlspecialchars in your script
Regards
webshome
How do I add that to my script. Sorry, I am a bit of a hack not a programmer. I can insert code in the right place as long as I know what and where :)
Any help appreciated.
Simon
SimonMc
10-08-2004, 03:21 AM
If I add:
$body .= htmlentities/htmlspecialchars($_POST['email']);
Is this correct or should it be:
$body .= htmlentities($_POST['email']);
$body .= htmlspecialchars($_POST['email']);
Thanks for looking :)
Simon