var winwidth= window.screen.width
var winheight= window.screen.height
var screenresolution= "Screen resolution: "+window.screen.width+" x "+window.screen.height
<script language="javascript">
function addto_db(value){
var mm=value;
<?$test;?>=mm;
<? $sql=" insert into tb_name set test='$test'";
mysq_query($sql);
?>
</script>