Jump to content
Sign in to follow this  
MiguelMba

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

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>

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...