php - $_GET not working with & in the URL -
I am working on a Wix widget. In my widget with an IFrame, this URL was generated by Wix:
I used the $ _GET from the URL to illustrate and compId values Tried to retrieve but no luck.
echo & lt; Pre & gt; '; Print_r ($ _ gET); Echo & lt; / Pre & gt; ';
gives me
array ([cache culler] => 123456 [ampI; compId] => hackex [and device type ] => Desktop [amp; example] => xxxxxxxxxxxxxx [amp; locale] => n [amp] see] => editor [and width] => 50)
Any ideas $ _ GET [amp;
Edit my problem about recovering these values without using compId] and $ _GET [and user] To solve, I am using
$ compId = isset ($ _GET ['compId'])? $ _GET ['compId']: $ _GET ['comp ID'];
-text "itemprop =" text "(& Amp; $ _ GET) {$ _GET [str_replace ('amp;', '', $ key)] = $ _GET [$ key]; Set up ($ _ GET [$ key]);});
Then you can use the keys without the
amp prefix.
Comments
Post a Comment