RE: [PHP] Screen Size detect??
| From: | Sean Malloy | Date: | Sun, 02 Feb 2003 00:36:06 +0000 |
| Subject: | RE: [PHP] Screen Size detect?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133940@lists.php.net to get a copy of this message | ||
index.htm
<script language="JavaScript">
function SubmitForm
{
document.myform.var.value = javascriptvalue;
document.myform.submit();
}
</script>
<body onLoad='SubmitForm();'>
<form name='myform' action='index.php' method='post'>
<input type='hidden' name='var' value=''>
</form>
</body>
or something. I don't even know if that code works... I haven't tested it.
but that could be the basis for somehting....
-----Original Message-----
From: Nigel Powell [mailto:guch@thatdog.demon.co.uk]
Sent: Sunday, 2 February 2003 3:25 AM
To: php-general@lists.php.net
Subject: RE: [PHP] Screen Size detect??
On a slight side note to this, how can you pass javascript variables to
PHP via POST?
Newbie Powell
On Saturday, February 1, 2003, at 12:21 PM,
php-general-digest-help@lists.php.net wrote:
> From: "Sean Malloy" <sean@element.net.au>
> Date: Sat Feb 1, 2003 6:48:26 AM Europe/London
> To: "Dade Register" <dade49@yahoo.com>, <php-general@lists.php.net>
> Subject: RE: [PHP] Screen Size detect??
>
>
> Create index.htm;
>
> <script language="JavaScript">
> var width = screen.width;
> var height = screen.height;
> window.location = 'index.php?width=' + width + '&height=' + height;
> </script>
>
> and in index.php
>
> $width = $_GET['width'];
> $height = $_GET['height'];
>
>
> etc etc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php