Add condition to if statement of the input value

If email is sent it's possible to click the send button again and again because the values are still in the input fields. checking for $email_sent variable prevents this