RE: [PHP] PHP & JavaScript
| From: | BQ777 | Date: | Thu, 23 Oct 2003 01:01:59 +0000 |
| Subject: | RE: [PHP] PHP & JavaScript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167210@lists.php.net to get a copy of this message | ||
Exactly.
but it should be only with one step.
That means, just running the file once and get the vars.
cbq
-----Original Message-----
From: Martin Towell [mailto:martin.towell@world.net]
Sent: Donnerstag, 23. Oktober 2003 03:00
To: 'BQ777'; php-general@lists.php.net
Subject: RE: [PHP] PHP & JavaScript
> 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