Why does this code produce 3 identical emails? (header and body identical)

<!doctype html>

To be kept informed of developments to this site, please enter your <input type="text" name="email" placeholder="email address here" (We will not share it with anyone else).

	<?php
		if (isset($_REQUEST['email']))  {
			$admin_email = "[email protected]";
			$email = $_REQUEST['email'];
			$subject = $email;
		mail($admin_email, $subject, $email);
	 
	  echo "Thank you for contacting us!";
	  }
	?>
</body>

Well, normally, you would do it in this format below. I am guessing that since you are not checking for the submit button
that the page is refreshing and sending more emails. It could also be the mail() function itself. You did not set any headers
in the email, so it might be something inside the headers.

<?PHP if(isset($_POST["submit_button"])) { some code.... } ?> form...
Sponsor our Newsletter | Privacy Policy | Terms of Service