no mi va in una pagina nuova dove non c'è la select per sceglierne un'altro devo tornare indietro
no mi va in una pagina nuova dove non c'è la select per sceglierne un'altro devo tornare indietro
IL PERDONO E' UNA COSA TRA LORO E DIO ... IO PROVVEDO AD ORGANIZZARE L'INCONTRO
ciao allora ho fatto un po di prove e il problema non è che mi va in una nuova pagina ma che dopo aver fatto invia mi scompare tutto..... ti spiego ho messo tutto in una tabella
la prima riga per la select e il tasto invia
la seconda riga per il riusltato
e una volta che mette il risultato la prima riga rimane vuota![]()
![]()
![]()
IL PERDONO E' UNA COSA TRA LORO E DIO ... IO PROVVEDO AD ORGANIZZARE L'INCONTRO
un cosa c'è qualche errore in questa query di inserimento????
$query = "INSERT INTO contatti (nome,cognome,tel_fisso,indirizzo,città,profession e,email) VALUES ('$nome','$cognome','$tel_fisso','$indirizzo','$ci tta','$professione','$email'";
$query_results = mysql_query($query) or die("&error=1");
grazie
IL PERDONO E' UNA COSA TRA LORO E DIO ... IO PROVVEDO AD ORGANIZZARE L'INCONTRO
please help ora non riesco a inserire i dati nella tabella del database va bene che sono niubbo ma cacchio non dovrebbe essere tanto difficile
ecco come lo faccio
Codice PHP:<title>INSERIMENTO</title>
<table width=100%>
<form name=rubrica method=post>
<tr><td width=12%>Nome:</td>
<td><input type=text name=nome></td></tr>
<tr>
<td width=12%>Cognome:</td>
<td width="88%"><input type=text name=cognome></td>
</tr>
<tr>
<td width=12%>Telefono fisso:</td>
<td><input type=text name=tel_fisso></td>
</tr>
<tr>
<td width=12%>Telefono cellulare:</td>
<td><input type=text name=tel_cell></td>
</tr>
<tr>
<td width=12%>Indirizzo:</td>
<td><input type=text name=indirizzo></td>
</tr>
<tr>
<td width=12%>Email:</td>
<td><input type=text name=email></td>
</tr>
<tr>
<td><input type=submit value=Invia name=rubrica> </td> <td><input type=reset value=RESET name=invia> </td>
</FORM>
</TABLE>
<?php
$nome=($_POST['nome']);
$cognome=($_POST['cognome']);
$tel_fisso=($_POST['tel_fisso']);
$tel_cell=($_POST['tel_cell']);
$indirizzo=($_POST['indirizzo']);
$email=($_POST['email']);
$server = "localhost";
$username = "username";
$password = "password";
$database = "rubrica";
$db = mysql_connect("$server", "$username", "$password");
$result=mysql_query("insert into contatti (nome,cognome,tel_fisso,indirizzo,città,professione,tel_cell,email) VALUES (
'$nome','$cognome','$tel_fisso','$indirizzo','$citta','$professione','$tel_cell','$email')",$db)or die("ERRORE");
?>
IL PERDONO E' UNA COSA TRA LORO E DIO ... IO PROVVEDO AD ORGANIZZARE L'INCONTRO
stampa la query
echo $sql
1° BUON NATALE IN RITARDO
2° non fa niente
ti posto il codice completo dimmi dove sta l'errore
Codice PHP:<title>INSERIMENTO</title>
<table width=100%>
<form name=rubrica method=post>
<tr><td width=12%>Nome:</td>
<td><input type=text name=nome></td></tr>
<tr>
<td width=12%>Cognome:</td>
<td width="88%"><input type=text name=cognome></td>
</tr>
<tr>
<td width=12%>Telefono fisso:</td>
<td><input type=text name=tel_fisso></td>
</tr>
<tr>
<td width=12%>Telefono cellulare:</td>
<td><input type=text name=tel_cell></td>
</tr>
<tr>
<td width=12%>Indirizzo:</td>
<td><input type=text name=indirizzo></td>
</tr>
<tr>
<td width=12%>Email:</td>
<td><input type=text name=email></td>
</tr>
<tr>
<td><input type=submit value=Invia name=rubrica> </td> <td><input type=reset value=RESET name=invia> </td>
</FORM>
</TABLE>
<?php
$nome=($_POST['nome']);
$cognome=($_POST['cognome']);
$tel_fisso=($_POST['tel_fisso']);
$tel_cell=($_POST['tel_cell']);
$indirizzo=($_POST['indirizzo']);
$email=($_POST['email']);
$server = "localhost";
$username = "root";
$password = "*****";
$database = "rubrica";
$db = mysql_connect("$server", "$username", "$password");
$result=mysql_query("insert into contatti (nome,cognome,tel_fisso,indirizzo,città,professione,tel_cell,email) VALUES (
'$nome','$cognome','$tel_fisso','$indirizzo','$citta','$professione','$tel_cell','$email')",$db)or die("ERRORE");
echo $sql;
?>
IL PERDONO E' UNA COSA TRA LORO E DIO ... IO PROVVEDO AD ORGANIZZARE L'INCONTRO
manca l'action al form![]()