harristweed Posted August 13, 2009 Share Posted August 13, 2009 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"> Link to comment https://forums.phpfreaks.com/topic/170137-solved-script-send-3-emails/ Share on other sites More sharing options...
hostingon Posted August 13, 2009 Share Posted August 13, 2009 Please post your all script content to see if there have any loops. Link to comment https://forums.phpfreaks.com/topic/170137-solved-script-send-3-emails/#findComment-897567 Share on other sites More sharing options...
will35010 Posted August 13, 2009 Share Posted August 13, 2009 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. Link to comment https://forums.phpfreaks.com/topic/170137-solved-script-send-3-emails/#findComment-897572 Share on other sites More sharing options...
harristweed Posted August 14, 2009 Author Share Posted August 14, 2009 Thanks hostingon, Browser problem. Firefox 3.0.13 Link to comment https://forums.phpfreaks.com/topic/170137-solved-script-send-3-emails/#findComment-897904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.