pass var through JS popup to PHP
pass var through JS popup to PHP
- Started
- Last post
- 3 Responses
- jpea
ok, so i'm not too well versed in JS and was wondering if there's a way to pass a variable through a javascript popup into the page it's opening, and then be able to access that variable in php on the opened page? basically, I can't pass a variable through the URL string so i'm hoping i can do it through JS and extract it from JS into PHP.
- freshlysqueezed0
Why can't you pass it through the url and then retrieve in the popup page?:
$_GET['your_var_name']
- jpea0
thanks. figured it out. I couldn't pass it through the url because of issues with mod_rewrite.