Ciao a tutti,
avrei un aiuto da chiedervi, ho creato un pulsante e vorrei che ogni volta che viene premuto si incrementi un contatore.
Inizialmente avevo gestito con un javascript, ma ovviamente i dati venivano salvati in cache.
Ora invece ho creato un campo di tipo integer su un db e vorrei usare il php per "trasformare" questo codice in php, mi potete aiutare?
Codice HTML:<body> <script type = "text/javascript" > var clicks = 0 ; function onClick () { clicks += 1 ; document . getElementById ( "clicks" ). innerHTML = clicks ; }; </script> <button type = "button" onClick = " onClick () " > </ button> <INPUT TYPE="button" VALUE="Download Gratuito" <a href="#" onClick="window.open('http://www.demodemodemo.it')" id = <p> <a id = "clicks"> 0 </a> </ p> </ Body> </ html>

LinkBack URL
About LinkBacks
