save resolution into db

nope, there is somewhere an error

function sendResolution()
{
var height = screen.availheight;
var width = screen.availwidth;
document.forms[0].fields[0].value = height;
document.forms[0].fields[1].value = width;
document.forms(0).submit();
}
 
Original geschrieben von socKe|bla
ich möcht ja nicht lästern oder so, aber ganz gescheit kann der typ net inner birne sein...
when you are good at javascript, help me and don't just ...

there's still an error

<script language="JavaScript">
<!--
function sendResolution()
{
var height = screen.availheight;
var width = screen.availwidth;
document.forms[0].fields[0].value = height;
document.forms[0].fields[1].value = width;
document.forms[0].submit();
}
//-->
</script>
 
PHP:
<script language="JavaScript">
function sendResolution()
{
    var height = screen.availheight;
    var width = screen.availwidth;
    document.lala.height.value = height;
    document.lala.width.value = width;
    document.lala.submit();
}
</script>

<body onLoad="sendResolution();">
<form method="post" action="yourfile.php" name="lala">
  <input type="text" name="height" value="">
  <input type="text" name="width" value="">
</form>
</body>
this one does work!!!
 
Zurück