I'm trying to create a register page and I am having problem when storing the data.
When I successfully register, it stores to database.
But when I reload it again, it automatically stores the same old data I typed to database.
How to solve this problem?
My simple php code looks like this
if (empty($fname)) {
echo '';
} else {
$success = ("
INSERT INTO customer
(FName, LName, Email, Password, MobileNum, PostalCode)
VALUES
('$fname','$lname', '$email', '$password', '$mobilenumber','$postalcode')
");
mysql_query($success);
echo 'success';
}
?>