I am using an html form , php , mysqli to save information . My form is working good but after clicking on submit button if i m refreshing the page then my mysql is saving values again and agian . what to do to stop this?
my code part
public function registration($name,$email,$en_pass)
{
$sql="INSERT INTO register_user (register_name, register_mail, register_password) VALUES ('$name', '$email' ,'$en_pass')";
if( mysqli_query($this->con, $sql))
{
echo "Registration successfull. Wait for approvel.";
}