Page 1 sur 1

Pb d'envoi du contenu de mon formulaire

Publié : 24 avr. 2007, 17:30
par DavDav
Salut à tous!
Je vient de créer un formulaire tout ce qu'il y a de plus simple avec NVu. Jusque la tout roule. Je fait des tests de remplissage nickel tout se passe bien; Et le Hic arrive lorsque je veut poster le formulaire. Il me met que internet explorer ne peut afficher cette page. Après quelques heures de recherche sur les forums et de différents test, je ne voit pas d'ou peut venir le probleme.
Lors de la création du formulaire j'ai mis:
-Nom de formulaire: contact
-URL de l'action: adresse mail ou je veut recevoir les formulaires
-methode: post.
Je n'y connait pas grand chose dans ce machin la, c la première fois que j'en fait un mais ca me saoule alors que ca paraissait si simple.
Si vous voyez mon erreur merci de me prevenir!


Message envoyé avec : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Publié : 24 avr. 2007, 18:48
par chinon37
Bonjour,
Pour une aide efficace, il faudrait donner l'adresse web de la page ou le code source, seul moyen d'étudier où est l'erreur.

Publié : 25 avr. 2007, 08:12
par klaviebel
Bonjour!
Il t'affiche une page avec des erreurs sur une ligne?
Si c'est cela, ça m'est arrivé aussi et c'est rien de grave :wink:
Il faut revoir le code php. Pour le coup, moi j'avais oublié des ";" et des "." Maintenant ils marchent tout les trois. Comme le suggère Chinon, il faudrait voir ton code source.

Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Publié : 25 avr. 2007, 17:30
par DavDav
Merci de votre aide voici mon code source pour ma page de contact:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>ACJ2L</title>
</head>
<body
 style="color: rgb(0, 0, 0); background-color: rgb(38, 66, 115);"
 alink="#ff0000" link="#ffffff" vlink="#ffffff">
<table
 style="width: 881px; height: 555px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <th
 style="white-space: nowrap; vertical-align: top; text-align: justify;"
 colspan="2" rowspan="1"><img
 style="width: 280px; height: 108px;" alt=""
 src="photos/logo/logo_acj2l.jpg"><img
 style="width: 700px; height: 108px;" alt=""
 src="photos/logo/animation_accueil2.gif"><a name="haut"></a></th>
    </tr>
    <tr>
      <td style="width: 160px; vertical-align: top;"><small><small><small><small><small><small><small><br>
      </small></small></small></small></small></small></small><small><small><small><small><small><small><small><br>
      <br>
      </small></small></small></small></small></small></small>&nbsp;
&nbsp; <a href="index.html"><img
 style="border: 0px solid ; width: 130px; height: 20px;" alt=""
 src="photos/Boutons/boutonAccueil.jpg"></a><small><small><small><small><small><small><small><small><small><small><big><big><big><big><big><big><big><small><small><small><small><small><small><small><small><br>
      </small></small></small></small></small></small></small></small></big></big></big></big></big></big></big></small></small></small></small></small></small></small></small></small></small>&nbsp;
      <br>
&nbsp; &nbsp; <a href="materiel.html"><img
 style="border: 0px solid ; width: 130px; height: 20px;" alt=""
 src="photos/Boutons/boutonMateriel.jpg"></a> <br>
      <br>
&nbsp; &nbsp; <a href="service.html"><img
 style="border: 0px solid ; width: 130px; height: 20px;" alt=""
 src="photos/Boutons/boutonService.jpg"></a><br>
      <br>
&nbsp; &nbsp; <a href="Logiciel.html"><img
 style="border: 0px solid ; width: 130px; height: 20px;" alt=""
 src="photos/Boutons/boutonLogiciels.jpg"></a><br>
      <br>
&nbsp; &nbsp; <a href="develop.html"><img
 style="border: 0px solid ; width: 130px; height: 20px;" alt=""
 src="photos/Boutons/boutonDev.jpg"></a><br>
      <br>
&nbsp; &nbsp; <a href="contact.html"><img
 style="border: 0px solid ; width: 130px; height: 20px;" alt=""
 src="photos/Boutons/boutonContact.jpg"></a><br>
      <br>
      </td>
      <td style="vertical-align: top; text-align: center;">
      <big><big><big><span
 style="color: rgb(255, 255, 255); font-family: Arial;">CONTACT<small><small><small><small><br>
      <br>
      </small></small></small></small></span></big></big></big>
      <div
 style="text-align: center; color: rgb(255, 255, 255); font-family: Arial;">
      <table
 style="color: rgb(255, 255, 255); font-family: Arial; width: 680px; height: 108px; text-align: left; margin-left: auto; margin-right: auto;"
 border="1" cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td
 style="text-align: center; vertical-align: top; width: 200px;">
            <div style="text-align: center;"><span
 style="font-weight: bold; text-decoration: underline;">ACJ2L</span><br>
            </div>
76 Rue Louis Moron BP-12 <br>
49320 Brissac Quinc&eacute;<br>
Tel : 02.41.74.91.36<br>
Fax : 02.41.74.91.72</td>
            <td
 style="text-align: center; vertical-align: top; width: 150px;"><span
 style="font-weight: bold;"><span
 style="text-decoration: underline;">Dirigeant<small><small><small><small><small><small><small><small><small><br>
            </small></small></small></small></small></small></small></small></small></span></span>Lo&iuml;c
LAUBERTON<br>
            <span style="font-weight: bold;"></span>06.09.26.45.08<br>
            <a href="mailto:acj2l_CHEZ_tiscali.fr">acj2l_CHEZ_tiscali.fr</a></td>
            <td
 style="text-align: center; vertical-align: top; width: 150px;"><span
 style="font-weight: bold;"><span
 style="text-decoration: underline;">Commerciale<small><small><small><small><small><small><small><small><small><br>
            </small></small></small></small></small></small></small></small></small></span></span>Marijo
JEHANNE<br>
            <span style="font-weight: bold;"></span>06.29.37.35.04<br>
            <a href="mailto:contact_CHEZ_acj2l.fr">contact_CHEZ_acj2l.fr</a></td>
            <td
 style="text-align: center; vertical-align: top; width: 150px;"><span
 style="font-weight: bold;"><span
 style="text-decoration: underline;">Technicien<small><small><small><small><small><small><small><small><small><br>
            </small></small></small></small></small></small></small></small></small></span></span>David
HUON<br>
            <span style="font-weight: bold;"></span>06.17.20.16.47<br>
            <a href="mailto:sav_CHEZ_acj2l.fr">sav_CHEZ_acj2l.fr</a></td>
          </tr>
        </tbody>
      </table>
      </div>
      <span style="font-family: Arial; color: rgb(255, 0, 0);">Vous
pouvez nous contacter soit avec les coordonn&eacute;es ci-dessus ou
alors &agrave; l'aide du formulaire ci-dessous.</span><br>
      <div style="text-align: left;">
      <div style="text-align: center;">
      <form method="post" action="contact_CHEZ_acj2l.fr"
 name="contact"><input name="Entreprise"
 type="checkbox"><span
 style="color: rgb(255, 255, 255); font-family: Arial;">Entreprise</span>
        <input name="Particulier" type="checkbox"><span
 style="color: rgb(255, 255, 255); font-family: Arial;">Particulier</span><br>
        <input size="10" readonly="readonly"
 name="Entreprise" value="Entreprise :">&nbsp;<input
 maxlength="58" size="58" name="Entreprise2"><br>
        <input readonly="readonly" size="10" name="Nom"
 value="Nom :"> <input size="19" name="Nom2">&nbsp;<input
 readonly="readonly" size="10" name="Pr&eacute;nom"
 value="Pr&eacute;nom :"> <input size="19" name="Pr&eacute;nom2"><br>
        <input size="10" readonly="readonly"
 name="Adresse" value="Adresse :"> <input
 maxlength="58" size="58" name="Adresse2"><br>
        <input readonly="readonly" size="10" name="CP"
 value="Code Postal :">&nbsp;<input size="8"
 name="CP2"> <input value="Ville :" name="Ville"
 size="10" readonly="readonly"> <input size="30"
 name="Ville2"><br>
        <input readonly="readonly" size="10" name="Tel"
 value="T&eacute;l&eacute;phone :">&nbsp;<input size="19"
 name="Tel2">&nbsp;<input readonly="readonly"
 size="10" name="Fax" value="Fax :">&nbsp;<input
 size="19" name="Fax2"><br>
        <input readonly="readonly" size="10"
 name="Portable" value="Portable :"> <input
 size="19" name="Portable2"> <br>
        <input readonly="readonly" size="10"
 name="Mail" value="Mail :">&nbsp;<input
 maxlength="58" size="58" name="Mail2"><br>
        <div style="text-align: center;"><input
 readonly="readonly" size="10" name="Message"
 value="Message :"><br>
        </div>
&nbsp;<textarea cols="55" rows="10" name="Message2"></textarea><small><small><small><small><small><small><big><big><big><big><big><big><br>
        <input name="Envoi" value="Envoi" type="submit">
        <input name="Retablir" value="Retablir"
 type="reset"><br>
        </big></big></big></big></big></big></small></small></small></small></small></small></form>
      </div>
      <div
 style="text-align: center; color: rgb(255, 255, 255); font-family: Arial;"><br>
      </div>
      </div>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>

Et ben si avec ca vous voyez le probleme vous etes des bon car moi j'pige que dalle!
Merci d'avance!!

[NDM: code mis entre les balises [ code] ... [/code ] ]
Message envoyé avec : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

[NDM] toutes les adresses e-mail figurant dans le post ont été camouflées [/NDM]

Publié : 25 avr. 2007, 17:46
par Ymai
Bonjour
Il y a au moins une chose qui ne va pas:

action="contact_chez_acj2l.fr" à remplacer par
action="mailto:contact_chez_acj2l.fr"

C'est moi qui ai changé le @ en _chez_

Mais ce type d'envoi ne fonctionne pas bien du tout; et uniquement si le correspondant dispose d'un logiciel de courrier électronique correctement configuré.

Publié : 26 avr. 2007, 10:13
par DavDav
Merci pour l'info mais j'ai deja essayé de mettre mailto:contact "chez"acj2l.fr mais le probleme est lorsque je clique sur le bouton envoi de mon formulaire il m'ouvre un page outlook express vierge mais ne prend pas en compte des info rentré dans le formulaire!!

[NDM] pas d'adresse e-mail en clair dans les posts à moins d'adorer les spams à profusion [/NDM]
Message envoyé avec : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

Publié : 26 avr. 2007, 10:41
par chinon37
Au fait, au vu de ton code source, il y a un usage immodéré de la barre de mise en forme n°2 relative à la taille des caractères amenant des aberrations comme celle-ci:

Code : Tout sélectionner

<small><small><small><small><small><small><small><small><small><small><big><big><big><big><big><big><big><small><small><small><small><small><small><small><small><br>
      </small></small></small></small></small></small></small></small></big></big></big></big></big></big></big></small></small></small></small></small></small></small></small></small></small>
évidemment, un petit peu de style appliqué directement sur l'élément serait le bienvenu et allégerait le code

Publié : 26 avr. 2007, 18:54
par Ymai
DavDav a écrit :mais le probleme est lorsque je clique sur le bouton envoi de mon formulaire il m'ouvre un page outlook express vierge
Voilà, c'est bien ce que je disais...
Mais ce type d'envoi ne fonctionne pas bien du tout;
Peut-être en mettant Thunderbird en logiciel de courrier électronique par défaut. Mais je n'y crois qu'à moitié.
De toute façon, difficile de demander à tous les visiteurs du site de passer à TB juste pour la raison qu'ils doivent envoyer un mail. Et leur demander de lire toutes les argumentations anti-Outlook Express avant de cliquer sur Envoyer ma paraît un peu lourd. :?
Rien à faire, l'envoi de mail passera toujours par une application côté serveur (en PHP ou autre).