How can I use a php page to upload js variables to an array of html pages? $ Itemnamejs how can I accept it? I used it directly. it seems that I am not going to ask for help from new users. I used html pages & lt ;? Var_dump ($ Itemname )? & Gt; value available !, To avoid misleading the Author, JSON. parse is used to parse json strings in JS ., How to use js variables
How can I accept an array $ Itemname js uploaded from a php page to an html page? I used it directly. it seems that I am not a newbie for help.
Html page Value available!
------ Solution --------------------
JSON. parse is used to parse json strings in JS.
------ Solution --------------------
Everyone said it was gbk.
PHP code
Function recursive_urlencode (& $ val) {if (is_array ($ val) foreach ($ val as & $ v) Recursive ($ v ); else $ val = urlencode ($ val);} echo urldecode (json_encode (recursive_urlencode ($ your array )));