php modify my javascipt code before output????

From: Date: Wed, 16 Jan 2002 00:53:58 +0000
Subject: php modify my javascipt code before output????
Groups: php.general 
Request: Send a blank email to php-general+get-80643@lists.php.net to get a copy of this message
Hi everyone : I got a amagzing problem about javascipt after integrate to php. PHP will modify the ouput of javascipt, produce the error when first load that page. However, reload this page, no error. Orginal javascipt: function f31(v31,v23,ocjs,hrck,cn) { return "<a onclick=\""+ocjs+"\" Become : function f31(v31,v23,ocjs,hrck,cn) { return "<a onclick="\"""+ocjs+"\" Add extra " "............., this produce error...... but reload is alright........ And i try this page file extension to .htm then everything is ok.... therefore i think php did some pre-process before send ouput. I try to turn off magic quote setting in php.ini but still have a problem. Thank for you help Vincent Ma

« previous php.general (#80643) next »