Link to home
Start Free TrialLog in
Avatar of Sheldon Livingston
Sheldon LivingstonFlag for United States of America

asked on

Cannot grab querystring...

Anyone know why the input "ScreenWidth" has a value of nothing instead of 1920?  I have tried " as well as '.
User generated image
ASKER CERTIFIED SOLUTION
Avatar of Zakaria Acharki
Zakaria Acharki
Flag of Morocco image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sheldon Livingston

ASKER

Thank you Zakaria!  That was it.
You're welcome sir, glad I could help.
Suggestion

Don't use $_GET / $_POST directly in your code - there is no guarantee they will exist.

In your case rather do something like this

$sw = isset($_GET['SW']) ? $_GET['SW'] : 0; // or some other default value
// Now you can use $sw safely as it is guaranteed to have a value;

Open in new window