you can create a form with hidden fields like this <script language="JavaScript">
document.screendata.height.value=screen.height; document.screendata.width.value=screen.width; screendata.submit(); </script> <form method="post" action="index.php" name="screendata"> <input type="hidden" name="height"> <input type="hidden" name="width"> </form> bye "Nigel Powell" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > 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