Jump to content

l'execution de mon formulaire ne se fait. svp je veux une solution


MiguelMba

Recommended Posts

<?php
if (isset($POST['valider']))
{
    if (!empty($_POST['nom']) AND !empty($_POST['prenom'])AND !empty($_POST['mail']) AND !empty($_POST['message'])) 
    {
        
    }
    else{
        $msg="Veuillez remplir tous les champs";
    }
}

 ?>
         <?php
         if (isset($msg)){
             echo $msg;
         } 
          ?>
        <form id="message" method="POST" action="">
            <input type="text" placeholder="Entrez votre nom" name="nom" id="nom" value="<?php if (isset($_POST['nom'])) echo  $_POST['nom'];?>"/>
                
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="prenom" placeholder="Entrez votre prenom" id="prenom"/><br/><br/>
            <input type="email" name="mail" class="mail" placeholder="Entrez votre E-mail" id="mail"/ ><br/><br/>
            <textarea  id="text" name="message" placeholder="Votre message" id="text">
            
            </textarea><br/><br/>

            <input type="submit" class="valider" name="valider" value="Envoyer votre message">
        </form>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...