... grazie!!
Ho provato a fare una cosa del genere:
Da una pagina prendo i dati;
E questa riceve i dati;codice:<html> <head> <title>Documento senza titolo</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form1" method="post" action="ricevo.php"> <input name="user" type="text" id="user" maxlength="10"> USER <input name="pass" type="text" id="pass" maxlength="10"> PASSWORD <input name="invia" type="submit" id="invia" value="Invia dati"> </form> </body> </html>
Solo che mi da questo errorecodice:<html> <head> <title>Prova invio dati</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php $nm_host = "localhost"; $nm_utente = "nome_database"; $pass = "password_database"; mysql_connect ($nm_host,$nm_utente,$pass) or die ("Non riesco ad effettuare la connessione"); print "Sono riuscito a connettermi"; $tuo_nome = $_POST["user"]; $tua_pass = $_POST["pass"]; mysql_query "INSERT INTO login (user, pass) VALUES ('{$tuo_nome}','{$tua_pass}')"; print "HO INSERITO I DATI" ?> </body> </html>
Cosa sbaglio?Parse error: syntax error, unexpected '"' in /membri/rinnovo/ricevo.php on line 19![]()

Rispondi quotando