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:[EMAIL PROTECTED] 
Sent: Donnerstag, 23. Oktober 2003 03:00
To: 'BQ777'; [EMAIL PROTECTED]
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to