Mi servirebbe un codice in javascript che in pratica una volta schiacciato un bottone rimandi a una pagina php con i dati appena cliccati es:
clicco su micheal jackson - bad,mi apre una pagina con scritto: artista :micheal jackson canzone: bad richiesta da:utente.
e sotto c'è il pulsante di invio,cmq ora vi allego il codice della pagina in php che dovrebbe aprire:
codice:<?php // All code is created by Arvin Johansson Arbab // So all credits to me! HaHaHaHA xD mysql_connect("server","",""); //Change the above line mysql_select_db("my_mikiwi"); //Change the above line $reg = "yes"; $ip = $_SERVER['REMOTE_ADDR']; ?> <html> <head> <title>Request a song</title> </head> <body> <?php echo "Your ip is: ".$ip." "; if (isset($_POST['submit'])) { if (empty($_POST['song'])) { echo "Sorry, you haven't supplied the song title! "; $reg = "no"; } if (empty($_POST['artist'])) { echo "Sorry, you haven't supplied the artists name! "; $reg = "no"; } if (empty($_POST['name'])) { echo "Sorry, you haven't supplied your name "; $reg = "no"; } $sql = "SELECT COUNT(*) FROM request_song WHERE ip='{$ip}'"; $result = mysql_query($sql); if (mysql_result($result, 0) > 0) { echo "Sorry, your ip has already wished for one song, you can not wish for another until the DJ's have seen your request! "; $reg = "no"; } if ($reg == "yes") { $sql = "INSERT INTO request_song(song, artist, name, ip) VALUES('{$_POST['song']}', '{$_POST['artist']}', '{$_POST['name']}', '{$ip}')"; mysql_query($sql); } } ?> <form action="request.php" method="POST"> <table> <tr><td>Song title: </td><td><input type="text" name="song" value=""></td></tr> <tr><td>Artist: </td><td><input type="text" name="artist" value=""></td></tr> <tr><td>Your name: </td><td><input type="text" name="name" value=""></td></tr> </table> <input type="submit" name="submit" value="Send!"> </form> </body> </html>

Rispondi quotando
[*]Con una spiegazione sommaria o incompleta anche volendo è impossibile aiutarti[/list=a] 