Formulaire avec CGI Lycos HELP

Résolu/Fermé
machbose Messages postés 42 Date d'inscription samedi 1 septembre 2007 Statut Membre Dernière intervention 27 août 2008 - 15 nov. 2007 à 20:34
 mignon - 22 mai 2008 à 22:36
Bonjour,

Bonjour,

Voilà je cherche à créer un formulaire mail sur mon site de telle sorte que les formulaires de contact atterrissent dans ma boite mail.
Seulement voilà, après plusieurs essais rien à faire! Je reçois un satané message d'erreur en rouge sur une page web blanche. du style "invalid from field".

Pourtant j'ai suivi l'exemple fourni par lycos tout en rectifiant les erreurs du débogueur de Dreamweaver MX 2004. Je ne comprends plus rien n'étant pas chevronné en html.

Voilà l'exemple que fournit Lycos:
<form enctype="multipart/form-data" method="post" action="/cgi-bin/mailer">
<table>
<tr>
<td><b>E-mail du visiteur :</b></td>
<td><input maxlength="35" name="FROM" size="40" value="visiteur@domaine.com"></td>
</tr>
<tr>
<td><b>E-mail du destinataire :</b></td>
<td><input maxlength="35" name="TO" size="40" value="votre_email@votre_domaine.com"></td>
</tr>
<tr>
<td><b>Sujet :</b></td>
<td><input maxlength="35" name="SUBJECT" size="40" value="Entrez le sujet ici"></td>
</tr>
<tr>
<td valign="top"><b>Commentaires :</b></td>
<td><textarea name="COMMENTS" cols="30" rows="4">commentaires.</textarea></td>
</tr>
<tr>
<td><b>Télécharger :</b></td>
<td><input name="UPLOAD" size="25" type="file"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Envoyer"> <input type="reset" value="Effacer"></td>
</tr>
</table>
<input type="hidden" name="GOTOURL" value="http://www.monsiteweb.com">
</form>

Moi j'ai crée ceci:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Document sans nom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.Style5 {font-family: Verdana; font-size: 10px; font-weight: bold; }
.Style8 {font-family: Verdana; font-weight: bold; }
.Style11 {color: #0000FF}
.Style12 {color: #000066}
-->
</style>
</head>

<body>
<form action="/cgi-bin/mailer" method="post" enctype="multipart/form-data" name="formcontact" target="_self" id="formcontact">
<p> </p>
<table width="880" border="0" cellspacing="4">
<tr>
<td width="173" height="24"><div align="right"><span class="Style5">Nom</span></div></td>
<td colspan="5"><input name="nom" type="text" id="nom2" /></td>
<td width="161" class="Style5"><div align="right"><span class="Style8">Quel est votre objectif? </span></div></td>
<td width="214" class="Style5"><span class="Style8">
<input name="remiseforme" type="checkbox" id="remiseforme" value="remise en forme" />
Remise en forme </span></td>
<td width="51"> </td>
</tr>
<tr>
<td height="24"><div align="right"><span class="Style5">Prénom</span></div></td>
<td colspan="5"><input name="prenom" type="text" id="prenom" /></td>
<td class="Style5"><div align="right"></div></td>
<td class="Style5"><span class="Style8">
<input name="controlepoids" type="checkbox" id="controlepoids" value="controle du poids" />
Contrôle du poids</span></td>
<td> </td>
</tr>
<tr>
<td height="24"><div align="right"><span class="Style5">Adresse</span></div></td>
<td colspan="5"><input name="adresse1" type="text" id="adresse1" /></td>
<td class="Style5"><div align="right"></div></td>
<td class="Style5"><span class="Style8">
<input name="nutrisports" type="checkbox" id="nutrisports" value="nutrition sportive" />
Nutrition sportive </span></td>
<td> </td>
</tr>
<tr>
<td height="24"><div align="right"></div></td>
<td colspan="5"><input name="adresse2" type="text" id="adresse2" /></td>
<td class="Style5"><div align="right"></div></td>
<td class="Style5"><span class="Style8">
<input name="soinbeaute" type="checkbox" id="soinbeaute" value="soin et beauté" />
Soin et beauté </span></td>
<td> </td>
</tr>
<tr>
<td height="24"><div align="right"><span class="Style5">Code Postal </span></div></td>
<td colspan="5"><input name="codepostal" type="text" id="codepostal" maxlength="5" /></td>
<td class="Style5"><div align="right"></div></td>
<td class="Style5"><span class="Style8">
<input name="complements" type="checkbox" id="complements" value="compléments alimentaires" />
Compléments alimentaires </span></td>
<td> </td>
</tr>
<tr>
<td height="24"><div align="right"><span class="Style5">Ville</span></div></td>
<td colspan="5"><input name="ville" type="text" id="ville" /></td>
<td class="Style5"><div align="right"></div></td>
<td class="Style5"> </td>
<td> </td>
</tr>
<tr>
<td height="24"><div align="right"><span class="Style5">Téléphone</span></div></td>
<td colspan="5"><input name="tel" type="text" id="tel" maxlength="10" /></td>
<td rowspan="3" class="Style5"><div align="right">Avez-vous déjà essayé un régime? Quel a été le résultat? Pourquoi n'êtes-vous pas satisfait(e)? </div></td>
<td colspan="2" rowspan="4" class="Style5"><textarea name="regimes" cols="30" rows="5" id="regimes"></textarea></td>
</tr>
<tr>
<td height="24"><div align="right"><span class="Style5">Email</span></div></td>
<td colspan="5"><input name="mail" type="text" id="mail" /></td>
</tr>
<tr>
<td height="26"><div align="right"><span class="Style5">Pour vous rappeller, plutôt le </span></div></td>
<td colspan="2"><select name="jour" id="jour">
<option value="Lundi">Lundi</option>
<option value="Mardi">Mardi</option>
<option value="Mercredi">Mercredi</option>
<option value="Jeudi">Jeudi</option>
<option value="Vendredi">Vendredi</option>
<option value="Samedi">Samedi</option>
</select></td>
<td width="35"><span class="Style5">entre</span></td>
<td colspan="2"><select name="heure" id="heure">
<option value="8h et 10h">8h et 10h</option>
<option value="10h et 12h">10h et 12h</option>
<option value="12h et 14h">12h et 14h</option>
<option value="14h et 16h">14h et 16h</option>
<option value="16h et 18h">16h et 18h</option>
<option value="18h et 20h">18h et 20h</option>
</select></td>
</tr>
<tr>
<td height="24"><div align="right" class="Style5">Quel est votre IMC? </div></td>
<td width="75"><input name="imc" type="text" id="imc" size="8" />
</td>
<td colspan="4" class="Style5 Style11"><a href="/calcul_imc.htm" target="_blank">Calculez-le ICI... </a></td>
<td class="Style5"><div align="right"></div></td>
</tr>
<tr>
<td><div align="right" class="Style5">Quelle est votre profession ? </div></td>
<td colspan="5"><input name="profession" type="text" id="profession" /></td>
<td class="Style5"><div align="right"></div></td>
<td class="Style5"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="4"> </td>
<td width="96"> </td>
<td rowspan="3" class="Style5"><div align="right">Présentez-vous, posez vos questions... Quels sont vos objectifs en matière de gestion du poids, beauté... </div></td>
<td colspan="2" rowspan="4" class="Style5"><textarea name="commentaire" cols="30" rows="5" id="commentaire"></textarea></td>
</tr>
<tr>
<td colspan="5" rowspan="2" ><p align="center" class="Style5 Style12">Vérifiez vos données et donnez-nous des détails, plus nous en saurons sur vous et plus nous pourrons nous adapter. Si tout est bon... </p> </td>
<td> </td>
</tr>
<tr>
<td height="28"> </td>
</tr>
<tr>
<td height="27" colspan="5" ><div align="center" class="Style12">
<input type="hidden" name="TO" value="infos@monsiteweb.com"/>
<input type="hidden" name="SUBJECT" value="Contact depuis le site"/>
<input name="Submit" type="submit" class="Style5" value="Envoyer" />
</div></td>
<td> </td>
<td class="Style5"><div align="right"></div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<input type="hidden" name="gotourl" value="http://www.monsiteweb.com/confirm.htm"/>
</tr>
</form>
</body>
</html>


Mais bon je ne sais plus comment faire, surtout que j'exploite une adresse mail hébergée par Lycos...

A ceux qui peuvent m'aider, MERCI BEAUCOUP!!!!!

2 réponses

machbose Messages postés 42 Date d'inscription samedi 1 septembre 2007 Statut Membre Dernière intervention 27 août 2008 23
10 avril 2008 à 14:48
bon, personne ne s'est pressé.

Merci quand même j'ai trouvé la soluce tout seul.
0
Bonjour, j'ai eu le même problème avec Lycos au mois d'avril et maintenant ça recommence. il désactive la fonction mail() alors vérifie bien si ça fonctionne encore car chez moi tous mes sites sont out. Aucun message ne passe par leur formulaire.
Cordialement
0
machbose Messages postés 42 Date d'inscription samedi 1 septembre 2007 Statut Membre Dernière intervention 27 août 2008 23 > mignon
22 mai 2008 à 19:24
J'ai arreté avec Lycos, je suis passé chez Sherweb.ca et là plus rien à voir, pour le même prix tu as un vrai support technique, avec des pro qui te réponde le lendemain voire dans la journée!
Je n'ai plus de problèmes depuis!
0
Merci pour ta réponse je vais suivre ton conseil surtout que j'ai d'autres sites à mettre en ligne dans un mois.
bonne soirée
0