ener Posted April 29, 2011 Share Posted April 29, 2011 Bonjour, I have a form in php (name, adresse ... and Email). Somebody is playing me a joke in sending me about 100 mails a day through my form. It's a joke but at last not really funny. What I am lookink for is lines of PHP codes which control the Email field into the form and would not allow the form to be sent. If you have another solution it's with a great pleasure I will accept it; Thanks a lot My english is definitively french. sorry about it Ener Quote Link to comment https://forums.phpfreaks.com/topic/235065-attempt-to-saturation-email-and-sgbd-via-a-form-in-php/ Share on other sites More sharing options...
Muddy_Funster Posted April 29, 2011 Share Posted April 29, 2011 We'll need to see your code to help you manipulate it. Quote Link to comment https://forums.phpfreaks.com/topic/235065-attempt-to-saturation-email-and-sgbd-via-a-form-in-php/#findComment-1208058 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2011 Share Posted April 29, 2011 All external data ($_POST, $_GET, $_COOKIE, and some $_SERVER variables) that is submitted to your code can be set to anything, cannot be trusted, and must be validated before you use the values in your code. Quote Link to comment https://forums.phpfreaks.com/topic/235065-attempt-to-saturation-email-and-sgbd-via-a-form-in-php/#findComment-1208062 Share on other sites More sharing options...
ener Posted April 29, 2011 Author Share Posted April 29, 2011 Here is extracts of the code : <form name="form_info" method="post" action="feednew.php" onsubmit="return verif_demande_infos()" class="cssform"> <input type="hidden" name="date" value="<?php echo ($date); ?>" /> …Etc…and ..<p><label for="courriel">Votre e-mail <span class="obligatoire">*</span> : </label><input type="text" name="courriel" id="courriel" size="44" /></p> …etc… ending with <p><label for="comment" style="text-align:left">Commentaires, observations ou demandes particulières : </label><textarea cols="55" rows="6" name="comment" id="comment" title="message"></textarea></p> <p class="submit"><input value="soumettre votre demande" type="submit" /> <br /><br /> <input type="reset" value="annuler votre demande" /></p> <br /> <div align="right" class="obligatoire">* : Champs obligatoires</div> </form> As you see it's very simple. If you need some more... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/235065-attempt-to-saturation-email-and-sgbd-via-a-form-in-php/#findComment-1208098 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2011 Share Posted April 29, 2011 Your form's not the problem. In fact, bot scripts that send spam submit the data directly to your form processing code. Your form processing code is where you must validate the data. Quote Link to comment https://forums.phpfreaks.com/topic/235065-attempt-to-saturation-email-and-sgbd-via-a-form-in-php/#findComment-1208165 Share on other sites More sharing options...
ener Posted May 5, 2011 Author Share Posted May 5, 2011 Thanks, but what can I do to block or stop. Quote Link to comment https://forums.phpfreaks.com/topic/235065-attempt-to-saturation-email-and-sgbd-via-a-form-in-php/#findComment-1210898 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.