Jump to content

how to process php variable in js code and hand it back


seco

Recommended Posts

Hi

i write

 

$fieldvalue= ' <script type="text/javascript"> ' .

'var txt="' . $fieldvalue . '" ; unescape(txt.replace(/\+/g,  " "));' .

  '</script>';

 

i find that $fieldvalue equales to the hole javascript block just i want to decode $fieldvalue using unescape function so how to do it?

 

thanks in advance.

so any way to process my php variable to decode it and assign it again

if its impossible is there any php server side can do like  unescape(txt.replace(/\+/g,  " "));' .

because i try urldecode and rawurldecode and dont do nothing for me just return them back as if they were !! no changes at all !!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.