PDA

View Full Version : problem with php and character %


Marcello2
01-25-2011, 02:24 PM
My php script works perfectly in the browser : all the % characters appear.
But in my script with actionscript, the % character does not load.
Must I do something special to encode in my php script or in my actionscript code ?

Thank you for your help.
marcello :)

CyanBlue
01-25-2011, 03:17 PM
That '%' symbold should be encoded as '%25' in PHP so that Flash can understand that as '%' symbol...

Marcello2
01-25-2011, 05:02 PM
Thank you.
The problem is solved with
function envoi($var, $val){
echo "&".$var."=".urlencode(utf8_encode($val));
}