Hello,
I would like to find out the browser width's numeric value.
Gets the value but say i try add 1 to itCode:<?php $width = " <script>document.write(window.outerWidth); </script>"; echo $width;
This just prints 1.... since i wanna add it to an if statement like thisCode:<?php echo $width + 1;
Code:if ($width < 1280){ $bla = "this"; } else { $bla = "that"; }


Reply With Quote

Bookmarks