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"> Quote 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. Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.