Jump to content

Recommended Posts

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

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.

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

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.