Perchè non mi inserisce alcun dato nel mio db mmysql e non mi scrive i msg d'errore nel campo dinamico?
Se qualcuno ha pazienza, ringrazio.
<?php
require ('conf.inc.php');
if(!empty($_POST['nome']) && !empty($_POST['cognome']) && !empty($_POST['email']) && !empty($_POST['username']) && !empty($_POST['password3']))
{
$msg = $_POST['msg'];
$nome = $_POST['nome'];
$cognome = $_POST['cognome'];
$country = $_POST['country']:
$college = $_POST['college'];
$email = $_POST['email'];
$telefono = $_POST['telefono']:
$username = $_POST['username'];
$password3 = $_POST['password3'];
$result = mysql_query("INSERT INTO $table (nome, cognome, country, college,email, telefono, username, password3)
VALUES ('$nome', '$cognome', '$country', '$college', '$email', '$telefono', '$username', '$password3')")
if($result)
{
echo "msg=Thank you, registration succes!";
} else {
echo "msg=Server error, please try later";
}
}
?>
Il pulsante invio:
on (press){
dati = new LoadVars;
dati.nome = nome.text;
dati.cognome = cognome.text;
dati.country = country.text;
dati.college = college.text;
dati.emial = email.text;
dati.telefono = telefono.text;
dati.username = username.text;
dati.password3 = password3.text;
dati.msg = msg.text;
dati.onLoad = function(success){
if (success){
trace(this.msg);
} else {
trace("error");
}
}
dati.sendAndLoad("signup.php", dati, "POST");
}
Non capisco---![]()

Rispondi quotando