Jump to content

[SOLVED] script send 3 emails


harristweed

Recommended Posts

This script sends 3 emails, Can anyone tell me why?

<?php
if($_GET['submit']=="submit"){
if(mail("[email protected]","hello","i dont get it")){
echo"mail sent";
}
}
?>
<form action="email_test.php" method="get">
<input type="submit" name="submit" value="submit">

 

Your code only sends one email. You either have a loop in some other code or something funny is going on with your browser.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.