|
Actually i found what was the problem,very silly but in programming this happens,i had forgot to include the file that connects with the database.
Now another problem is with the encoded password.I put in the page where the user insert the details the variable that keeps the password :
$pass=sha1($_POST['password']);
and the insert statement
$query="Insert into Customers (`title`,`username`, `password`, `firstname`, `lastname`, `address`, `town`, `county`, `postcode`, `email`)
values ('$title','$username','$pass','$forename','$surnam e','$fulladdress','$town','$county','$postcode','$ email')";
$rs=mysql_query($query);
but it doesn't put it encoded in the database.Only if i go manually from the phpAdmin i change the text type to sha1 and is changing.But i want to be inserted in the database encoded.
Any ideas?
Thank you,
Xenia
|