RE: [PHP] PHP JavaScript

2003-10-22 Thread BQ777
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



[PHP] PHP JavaScript

2003-10-22 Thread BQ777
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.
 
greetZ
 
CBQ


[PHP] RE: [PHP-WIN] Re: [PHP] PHP JavaScript

2003-10-22 Thread BQ777
Oh I see. Well I thought that, but I wasn't sure.

Ok I will do this way. No I have an direction :)

Thanks a lot.


-Original Message-
From: Mike Migurski [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 23. Oktober 2003 03:11
To: BQ777
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: [PHP] PHP  JavaScript

Have somebody any idea how I could do something like that?

snip javascript and PHP

You're somewhat out of luck, as the chain of events in your typical HTTP
transaction looks something like this...

[time]-
client request received from browser
 |
 +- PHP code executed on server
  |
  +- text output to webserver (including javascript source)
   |
   +- [drawing of cloud representing internet]
|
+- text input to web browser on client side
 |
 +- javascript executed by client
[time]-

...The only way to have the javascript affect the PHP, is to make a
subsequent request /back/ to the server after the javascript has started
executing. You can, for example, package the screen size into a GET
variable appended to an image request.

-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html

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

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