begin process at 2012 05 31 01:12:41
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive PHP

 > 

Archives

 > 

AU SECOURS !!!

 > 

Problème avec formmail.pl


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

Problème avec formmail.pl

dimanche 29 janvier 2006 à 19:16:38 | Problème avec formmail.pl

emeric73

Bonjour,

j'ai fais un formulaire qui fais appel a formmail.pl, le souci c'est que quand il y a un champ oublier il trouve le fichier formmail.pl pour nous dire que y a un champ nom remplie .....,mais quand on clique sur envoyer et que les champs sont bien remplie il y a un problème sa renvoie sur le fichier formmail.pl mais en 404, je n'arrive pas a savoire ou sela vien.


<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Contact</title>
<meta name="generator" content="Namo WebEditor v4.0">
<script language="JavaScript">
//La fonction JavaScript qui vérifie si les champs obligatoirs du formulaire ont été bien remplis
<!--
function envoie(formulaire) {
if ( (document.getElementById('pseudo').value.length>0)
&&(document.getElementById('nom').value.length>0)
&&(document.getElementById('prenom').value.length>0)
&&(document.getElementById('email').value.length>0)
&&(document.getElementById('message').value.length>0)
 ){
formulaire.submit();
} else
alert('IMPOSSIBLE D\' ENVOER LE FORMULAIRE, VOUS AVEZ OUBLIEZ DE REMPLIRE DES CHAMPS OBLIGATOIRS');
}
-->
</script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center" style="border-collapse:collapse;">&nbsp;</p>
<form method="post" action="/cgi-bin/formmail.pl">
<table align="center" cellpadding="0" cellspacing="0" width="437" bordercolordark="white" bordercolorlight="black" style="border-collapse:collapse;">
    <tr>
        <td width="435" height="23" align="center" valign="middle" colspan="2" background="../imgs/barhaut.gif" style="border-top-width:1px; border-right-width:1px; border-left-width:1px; border-top-color:black; border-right-color:black; border-left-color:black; border-top-style:solid; border-right-style:solid; border-left-style:solid;">
            <p><b><font color="white" size="1" face="Verdana"><i>Contact</i></font></b></p>
        </td>
    </tr>
    <tr>
        <td width="435" height="14" align="center" valign="middle" colspan="2" style="border-right-width:1px; border-left-width:1px; border-right-color:black; border-left-color:black; border-right-style:solid; border-left-style:solid;">
<input type="hidden" name="recipient" value="webmaster@power-max.org">
<input type="hidden" name="redirect" value="http://www.power-max.org/pages/envoi2.php">
<input type="hidden" name="required" value="pseudo,prenom,nom,email,message">&nbsp;        </td>
    </tr>
    <tr>
        <td width="183" height="17" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
                <p align="right"><b><i><font size="1" face="Verdana">Sujet :</font></i></b></p>
        </td>
        <td width="252" height="17" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><select name="sujet" size="1" style="font-family:Verdana; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin:0px; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="titre">
                <option>Association</option>
                <option>Services au Forains</option>
                <option>Annonce et boutique</option>
                <option>Reportages et vid&eacute;os</option>
                <option>Forums et t'chat</option>
                <option>Ajout de lien</option>
                <option>Ajout d'une date</option>
                <option>Informations divers et autres</option>
                <option>Demande en mairie, site web</option>
            </select><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="8" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Titre : </i></font></b></p>
        </td>
        <td width="252" height="8" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><select name="titre" size="1" style="font-family:Verdana; font-weight:bolder; font-size:8pt; color:maroon; margin:0px; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="titre">
            <option value="Monsieur" selected>Monsieur</option>
            <option value="Madame">Madame</option>
            <option value="Madamoiselle">Madamoiselle</option>
            </select><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="8" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Famille : </i></font></b></p>
        </td>
        <td width="252" height="8" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><select name="famille" size="1" style="font-family:Verdana; font-weight:bolder; font-size:8pt; color:maroon; margin:0px; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="famille">
            <option value="Particulier" selected>Particulier</option>
            <option value="Forain">Forain</option>
            <option value="Société">Soci&eacute;t&eacute;</option>
            </select><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="7" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Pseudo : </i></font></b></p>
        </td>
        <td width="252" height="7" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="pseudo" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;id=" id="pseudo" size="20"><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="17" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Pr&eacute;nom
            : </i></font></b></p>
        </td>
        <td width="252" height="17" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="prenom" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="prenom" size="20"><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="10" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Nom : </i></font></b></p>
        </td>
        <td width="252" height="10" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="nom" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="nom" size="20"><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="12" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Numero de t&eacute;l&eacute;phone
             : </i></font></b></p>
        </td>
        <td width="252" height="12" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="numerotel" maxlength="10" size="20" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="numerotel">
                &nbsp;&nbsp;</p>
        </td>
    </tr>
    <tr>
        <td width="183" height="19" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Adresse MSN : </i></font></b></p>
        </td>
        <td width="252" height="19" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="msn" size="20" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="msn">
            &nbsp;&nbsp;</p>
        </td>
    </tr>
    <tr>
        <td width="183" height="12" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p align="right"><b><font size="1" face="Verdana"><i>Adresse E-mail
                :</i></font></b></p>
        </td>
        <td width="252" height="12" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="email" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="email" size="20"><font color="maroon"><b><i>*</i></b></font></p>
        </td>
    </tr>
    <tr>
        <td width="183" height="12" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
            <p>&nbsp;</p>
        </td>
        <td width="252" height="12" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p>&nbsp;</p>
        </td>
    </tr>
    <tr>
        <td width="183" height="8" align="center" valign="middle" style="border-left-width:1px; border-left-color:black; border-left-style:solid;">
                <p><b><font size="1" face="Verdana"><i>Num&eacute;ro membre
                association :</i></font></b></p>
        </td>
        <td width="252" height="8" align="center" valign="middle" style="border-right-width:1px; border-right-color:black; border-right-style:solid;">
            <p align="center"><input type="text" name="numeromembre" style="font-family:Verdana; font-style:normal; font-weight:bolder; font-size:8pt; color:maroon; text-align:center; margin-top:0px; margin-right:0; margin-bottom:0; margin-left:0; padding:0px; border-width:1px; border-color:maroon; border-style:solid;" id="numeromembre"></p>
        </td>
    </tr>
    <tr>
        <td width="436" height="26" align="center" valign="middle" style="border-right-width:1px; border-left-width:1px; border-right-color:black; border-left-color:black; border-right-style:solid; border-left-style:solid;" colspan="2">
                <p align="center"><b><i><font size="1" face="Verdana">Message
                :</font></i></b></p>
        </td>
    </tr>
    <tr>
        <td width="436" height="9" align="center" valign="middle" style="border-right-width:1px; border-left-width:1px; border-right-color:black; border-left-color:black; border-right-style:solid; border-left-style:solid;" colspan="2">
                <p><textarea name="message" rows="8" cols="49" id="message" style="font-family:Verdana; font-weight:bolder; font-size:8pt; color:maroon; border-width:1px; border-color:maroon; border-style:solid;"></textarea></p>
        </td>
    </tr>
    <tr>
        <td width="435" height="42" align="center" valign="middle" colspan="2" style="border-right-width:1px; border-left-width:1px; border-right-color:black; border-left-color:black; border-right-style:solid; border-left-style:solid;">
                <p><input type="button" name="envoyer" value="Envoyer" style="font-family:Verdana; font-weight:bolder; font-size:8pt; color:maroon; margin:0; border-width:1px; border-color:maroon; border-style:dashed;" id="envoyer" OnClick="envoie(this.form)"></p>
        </td>
    </tr>
    </form>
    <tr>
        <td width="435" height="24" align="center" valign="middle" colspan="2" background="../imgs/barbas.gif" style="border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-right-color:black; border-bottom-color:black; border-left-color:black; border-right-style:solid; border-bottom-style:solid; border-left-style:solid;"> 
                <p>&nbsp;</p>
            </form>
        </td>
    </tr>
</table>
</body>

</html>

Merci beaucoup de votre aide.

Emeric

dimanche 29 janvier 2006 à 20:30:40 | Re : Problème avec formmail.pl

Anthomicro

Salut,

le code PHP est où ?


    lundi 30 janvier 2006 à 21:59:20 | Re : Problème avec formmail.pl

    FhX

    <form method="post" action="/cgi-bin/formmail.pl">

    C'est du PERL, pas du PHP :)
    lundi 30 janvier 2006 à 22:31:06 | Re : Problème avec formmail.pl

    Anthomicro

    D'où ma question ^^




      Cette discussion est classée dans : formulaire, formmail, nbsp, eacute, pl


      Répondre à ce message

      Sujets en rapport avec ce message

      formulaire mail [ par reso101 ] Je suis chez l'herbergeur AMEN et je souhaite pour un site utiliser un formulaire mais ça marche pô... Pourriez vous m'aider svpmerci par avancevoiçi formulaire de contact [ par n1nicks ] bonjour tt le monde j'ai un probleme avec mon formulaire; quand on remplis les champs et on click sur envoyer; les champs se retablissent comme blank champs obligatoire dans un formulaire [ par Limahl19 ] Salut a tous,j'ai un formulaire et j'aimerai bloquer l'envoi tant que certains champs ne sont pas rempli. et qu'unefois le formulaire rempli l'envoi s Formulaire html à finaliser [ par Mamalounet ] Bonjour à tous et à toutes :)J'èspère etre dans le bon forum :/J'ai créé un formulaire de type html à l'aide de dreamwever (je suis débutant).Ce formu petit probleme de champs [ par chris tuckers ] Ci-dessous vous trouverez un code qui au premier abord fonctionne, mais qui m'affiche l'erreur suivante lorsque je test la page ;Notice: Undefined var javascript et php [ par amine390 ] salutje veux utilise une fonction java script en php j'arrive pas a recupere la valeur de cette function l'erreur qui s'affiche est undifuned function formulaire html --> code PHP --> log vers mySQL HELLP plz (debutant) [ par ju0123456789 ] Bonjour,Je débute en PHP et mysql.Depuis un bon moment je fais mes sites internet en html/javacript/css, et, par la force des choses je suis obligé ma recuperation donnees texte code pour afficher un formulaire diffent suivant code [ par mtibo34 ] Bonjour,Je vous explique, je suis entrain de préparer un site pour un mariage, je souhaite mettre en place un formulaire.Seulement pour le mariage il Champ texte dans formulaire [ par pympc ] bonjour à tousPetite question d'un débutant concernant l'établissement d'un formulaire.Je voudrais réaliser un formulaire "évolutif" : un texte issu d vérification tres strict d'un formulaire [ par piteur30 ] bonjour voici mon formulaire dajout de membre : a{ text-decoration:none; } <br&


      Nos sponsors


      Sondage...

      CalendriCode

      Mai 2012
      LMMJVSD
       123456
      78910111213
      14151617181920
      21222324252627
      28293031   

      Consulter la suite du CalendriCode

      Photothèque

      A découvrir



       
      Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
      CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
      CodeS-SourceS.com© est une marque déposée tous droits réservés

      Google Coop CodeS-SourceS Google Coop CodeS-SourceS
      Temps d'éxécution de la page : 1,264 sec (3)

      Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales