da js a php

vitographic

Utente Attivo
10 Mar 2013
67
0
0
vorrei semplicemente passare il valore della variabile js lol alla variabile $pippo e salvare ma nn fuge
qualcuno mi può aiutare
questo è il codice

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.Stile1 {font-size: 9px}
-->
</style>
</head>

<body>
<div id="Layer1" style="position:absolute; left:111px; top:21px; width:411px; height:268px; z-index:1; overflow: auto;">
<table width="0" height="0" border="0%" align="center" cellpadding="0%" cellspacing="0%" id="video">
<tr>
<td height="55%" colspan="5" align="center" valign="baseline" nowrap="nowrap"><a href="#" onclick="aumenta();return false;"><img src="btn_vmm.png" width="100" height="73" border="0" align="top" /></a></td>
<td width="100" align="center" valign="baseline" nowrap="nowrap"><a href="#" onclick="aumenta();return false;"><img src="btn_vmm.png" width="100" height="73" border="0" align="top" /></a></td>
<td width="100" align="center" valign="baseline" nowrap="nowrap"><a href="#" onclick="aumenta();return false;"><img src="btn_vmm.png" width="100" height="73" border="0" align="top" /></a></td>
<td width="104" align="center" valign="baseline" nowrap="nowrap"><a href="#" onclick="aumenta();return false;"><img src="btn_vmm.png" width="100" height="73" border="0" align="top" /></a></td>
</tr>
<tr>
<td height="14%"><div align="left"><span class="Stile1"></span></div></td>
<td height="14%" colspan="4"><span class="Stile1">descrizione dell'evento a Putignano</span></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="6" height="14%" nowrap="nowrap">&nbsp;</td>
<td width="48" nowrap="nowrap"><div align="left"><span class="Stile1">00.00</span></div></td>
<td width="27" height="14%" nowrap="nowrap"><div align="left" class="Stile1" id="visite">visite</div></td>
<td width="21" nowrap="nowrap"><div align="right" class="Stile1"><span id="lol">0</span></div></td>
<td width="5" nowrap="nowrap">&nbsp;</td>
<td width="100">&nbsp;</td>
<td width="100">&nbsp;</td>
<td width="104">&nbsp;</td>
</tr>
<tr>
<td height="17%" nowrap="nowrap">&nbsp;</td>
<td height="17%" nowrap="nowrap"><span class="Stile1">05/01/2013</span></td>
<td height="17%" nowrap="nowrap"><span class="Stile1">voti</span></td>
<td height="17%" nowrap="nowrap"><span class="Stile1"></span></td>
<td height="17%" nowrap="nowrap">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td width="104" height="0%" align="center" valign="middle" nowrap="nowrap">&nbsp;</td>
</tr>
</table>
</div>

<script>
function aumenta() {
numero = document.getElementById("lol").innerHTML;
numero++;
document.getElementById("lol").innerHTML = numero;
}

</script>
<!--<button onclick="aumenta()">AUMENTA NUMERO</script>-->
<br />
<?php
$pippo = $_GET['lol'];
$fp = fopen('provalo.txt', 'w');
fwrite($fp, $pippo);
fclose($fp);
?>
</body>
</html>
 

Discussioni simili