RE: [PHP] PHP & JavaScript
| From: | Martin Towell | Date: | Thu, 23 Oct 2003 01:00:19 +0000 |
| Subject: | RE: [PHP] PHP & JavaScript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167207@lists.php.net to get a copy of this message | ||
> Hi everybody!
>
> Have somebody any idea how I could do something like that?
>
> <?
> settype($phpScreenWidth, "string");
> settype($phpScreenHeight, "string");
> ?>
>
> <script language="javascript">
> var phpScreenWidth, phpScreenHight;
>
> phpScreenWidth = screen.width;
> phpScreenHeight = screen.height;
>
> </script>
>
> <?
> echo "Width:|".$phpScreenWidth."|<br>";
> echo "Height:|".$phpScreenHeight."|<br>";
> ?>
>
> I know that this code is not working, it is just to see what I want to
> do.
> If somebody know a solution, like this, then please let me know.
What are you trying do? Are you trying to pass to PHP the user's screen
width and height ?
Martin