[wd_asp elements=’search’ ratio=’100%’ id=1]

Responsive screen size – PHP way

11th April 2014

Php - Miscellaneous

php codehaven

Needs some work but the basics are there…..

";
}
else
{
/* This code will be executed after screen resolution is detected.*/
if(isset($_GET['Width']) && isset($_GET['Height'])) {
// Resolution detected
echo "

Your screen resolution is ".$_GET['Width']." x ".$_GET['Height'].".

";
//Display page as per resolution
if($_GET['Width']<1024) { } } }echo $_GET['Width']; ?>