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:[EMAIL PROTECTED]]
Sent: Sunday, 2 February 2003 3:25 AM
To: [EMAIL PROTECTED]
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,
[EMAIL PROTECTED] wrote:
> From: "Sean Malloy" <[EMAIL PROTECTED]>
> Date: Sat Feb 1, 2003 6:48:26 AM Europe/London
> To: "Dade Register" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php