Forum : Lws & Hebergeur-discount

Hébergement web, nom de domaine et serveur dédié.

problème sur formulaire [Résolu]

Ici vous pouvez poser vos questions techniques, les problemes que vous rencontrez (publication de votre site, configuration dns des domaines...)
Daniel

lun. nov. 23, 2009 5:55 pm  

Oui, effectivement il avait un bouge, nous avons mis à jour le script, vous pouvez suivre la documentation sur : http://wiki.lws-hosting.com/doku.php/co ... n_site_web

Merci !

ROXANE
Débutant
Débutant
Messages : 9

mar. nov. 24, 2009 4:25 pm  

Le formulaire complété en ligne part mais je ne sais pas où il arrive ??? Aucune réception.

ROXANE
Débutant
Débutant
Messages : 9

mar. nov. 24, 2009 7:12 pm  

Il n'y a rien qui marche. C'est un site professionnel, je suis emmerdée avec mon formulaire qui fonctionnait très bien jusqu'à ce que vous changiez la donne. Je ne pense pas renouveler mon abonnement chez vous et vous ne m'apportez aucune solution. D'ailleurs, un coup c'est formmail, un coup c'est formail. Pour quelqu'un qui a toujours fait un site avec Webeditor, je n'ai jamais été embêtée avant. Je ne comprends rien à vos explications et surtout je n'ai pas de solutions. Pour mes clients, c'est super. Merci.

Daniel

mer. nov. 25, 2009 8:19 am  

Vous n'avez qu'à télécharger le formulaire, modifier les adresses mail et publier les fichiers sur votre site, tout est bien expliqué sur :
http://wiki.lws-hosting.com/doku.php/co ... n_site_web

Nous sommes hébergeurs de sites, mais nous ne faisons pas les sites et portant la documentation est là.

Prenez le premier formulaire, vous changez les XXXX@XXXXX.XX par votre adresse mail dans le fichier contactmail.php et c'est tout !

ROXANE
Débutant
Débutant
Messages : 9

mer. nov. 25, 2009 9:58 am  

C'est ce que j'ai fait. Maintenant lorsque le formulaire comporte plus de renseignements à récolter, des cases à cocher etc .. y a t'il autre chose à modifier sur le contactmail.php ?
Il est bien en ligne, on peut le compléter, l'envoyer, le problème c'est qu'il n'arrive pas au mail indiqué.

Daniel

mer. nov. 25, 2009 3:09 pm  

Pouvez-vous coller le code source de votre formulaire ici ? Merci.

ROXANE
Débutant
Débutant
Messages : 9

mer. nov. 25, 2009 3:49 pm  

<html>
<head>
<title>Inscription famille accueil</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="La Maison de Roxane">
<meta name="namo-theme" content="Theme\Arts\Brown">
<style><!--
body { font-family:'Times New Roman'; color:black; }
h1 { color:#804000; font-family:Times New Roman; font-size:12; }
h2 { color:#BF6000; font-family:Times New Roman; font-size:12; }
p.namo-list { color:#400000; font-family:Times New Roman; font-size:12; }
p.namo-sublist { color:#916617; font-family:Times New Roman; font-size:10; }
table.namo-table { border-left-color:silver; border-top-color:silver; border-right-color:#707070; border-bottom-color:#707070; }
table.namo-table td { border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }
table.namo-table th { background-color:#ECDEB5; border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }
span.namo-link, a:link { color:red; text-decoration:underline; }
span.namo-visited, a:visited { color:gray; text-decoration:underline; }
span.namo-active, a:active { color:#DB9657; text-decoration:underline; }
li.namo-list1 { list-style-image:url('nav/bullet1.gif'); }
li.namo-list2 { list-style-image:url('nav/bullet2.gif'); }
--></style></head>


<body background="images/nth_theme_arts_brown_bg.gif">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"></head></span></font><body class="ms-addnew" background="images/nth_theme_arts_brown_bg.gif">
<FORM METHOD=post action=formmail2.php>
<INPUT TYPE="hidden" SIZE="50" NAME="subject value=formmail>"><table> <p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><font color="#CC3300" size="3" face="trebuchet ms,arial,helvetica">
</span></font></p>

<table width="516" bordercolordark="#707070" bordercolorlight="silver" border="1" class="namo-table" align="center">
<tr>
<th width="506" colspan="2" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"> <font face="Times New Roman"><span style="font-size:12pt;">Inscription famille d'accueil</span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">nom : </span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="nom"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">prénom: </span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="prenom"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">e-mail : </span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="mail"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">téléphone</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type=text size="10" maxlength="10" name="telephone" onchange=onlyNumber()> </span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">portable</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type=text size="10" maxlength="10" name="mobile" onchange=onlyNumber()> </span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">adresse</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="adresse" size="30"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">adresse (suite)</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="adresse2" size="30"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">code postal</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="CP" size="5" maxlength="5"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">ville</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="text" name="ville" size="20"></span></font>
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">quel chien&nbsp;souhaitez-vous&nbsp;garder ? </span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"> gabarit&nbsp;sans&nbsp;importance </span></font><font face="Times New Roman"><span style="font-size:12pt;"><input type="checkbox" name="gabarit " value="sans importance"></span></font> <p align="left"><font face="Times New Roman"><span style="font-family:'Times New Roman'; font-size:12pt;">&nbsp;gabarit petit </span></font><input type="checkbox" name="gabarit " value="petit"><font face="Times New Roman"><span style="font-family:'Times New Roman'; font-size:12pt;"> moyen </span></font><input type="checkbox" name="gabarit " value="moyen"><font face="Times New Roman"><span style="font-family:'Times New Roman'; font-size:12pt;"> grand </span></font><input type="checkbox" name="gabarit " value="grand">chiot&nbsp;<input type="checkbox" name="chiot" value="oui">
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">possédez-vous un animal ? lequel ?
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p>chien <input type="checkbox" name="chien sur place" value="chien"> race <input type="text" name="race"> <p>nombre <input type="text" name="nombre" size="1" maxlength="2"> &nbsp;&nbsp; chat <input type="checkbox" name="chat" value="chat">
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left">disponibilité annuelle
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><input type="checkbox" name="dispo" value="dispo_annee">
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">avez-vous des jeunes enfants ?
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">enfant (s) <input type="checkbox" name="enfant" value="oui">
<tr>
<th width="199" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">votre habitation</span></font>
<td width="301" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;">&nbsp;maison <input type="checkbox" name="maison"> appartement <input type="checkbox" name="appartement"> </span></font> <p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="checkbox" name="jardin"> <u>jardin clos</u> &nbsp;surface </span></font><input type="text" name="surface jardin" maxlength="4" size="2">
<tr>
<td width="199" height="24" align="right" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><b>votre profession</b>
<td width="301" height="24" align="right" class="namo-th" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"> <input type="text" name="profession" maxlength="10" size="10"> </span></font> &nbsp;&nbsp;&nbsp;<b>votre âge</b> &nbsp;<input type="text" name="age" size="3">
<tr>
<td width="506" height="24" align="right" class="namo-th" colspan="2" style="background-color:rgb(252,212,82);">
<p align="left"><span style="font-size:12pt;"><font face="Times New Roman" color="maroon"> </font></span> <b>avez-vous des précisions à apporter ? :</b>
<textarea name="commentaire" rows="6" cols="50"></textarea> <tr>
<td width="506" align="right" class="namo-th" height="24" colspan="2" style="background-color:rgb(252,212,82);">
<p align="left"><font face="Times New Roman"><span style="font-size:12pt;"><input type="submit" value="Je m'inscris"> </span></font></table>
<p align="left">





</form>
</body>
</div>

Daniel

mer. nov. 25, 2009 5:25 pm  

Pouvez-vous coller le code PHP aussi ? merci.

ROXANE
Débutant
Débutant
Messages : 9

mer. nov. 25, 2009 6:40 pm  

<?php
//Envoi du mail
// remplacer XXXXXX@XXXXXXX.XXXX par un email valide associé à votre domaine //
$TO = "XXXXXX@XXXXXXX.XXXX"; // L'adresse mail ou vous allez recevoir ce formulaire //
$head = "From:info@lamaisonderoxane.com\n"; // adresse email de l'Expediteur
$head .= "X-Sender: <info@lamaisonderoxane.com>\n";
$head .= "X-Mailer: PHP\n";
$head .= "Return-Path: <info@lamaisonderoxane.com>\n";
$head .= "Content-Type: text/plain; charset=iso-8859-1\n";
$sujet = "Formulaire de contact"; // sujet de votre mail
$informations = "
Nom: $nom \r\n
Prenom : $prenom \r\n
Email du formulaire: $email \r\n
Telephone: $telephone \r\n
Adresse: $adresse \r\n
Adresse2: $adresse2 \r\n
CP: $cp \r\n
Ville: $ville \r\n
Gabarit: $sansimportance \r\n
Gabarit: $petit \r\n
Gabarit: $moyen \r\n
Gabarit: $grand \r\n
Animal: $chien \r\n
Race: $race \r\n
Animal: $chat \r\n
Quantite: $quantite \r\n
Disponibilite: $dispo \r\n
Enfant: $enfant \r\n
Habitation: $maison \r\n
Habitation: $appartement \r\n
Jardin: $jardin \r\n
Surface: $surface \r\n
Profession: $profession \r\n
Age: $age \r\n
Sujet du formulaire: $title\r\n
Message: $commentaire \r\n
";
$res = mail($TO, $sujet ,$informations, $head);
if (true == $res) {
Header("Location: http://www.lamaisonderoxane.com/formail2_ok.htm" ); // (l'url vers laquel est redirigé l'expediteur) ;
} else {
Header("Location: http://www.lamaisonderoxane.com/formail2_pasok.htm" ); // (l'url vers laquel est redirigé l'expediteur) ;
}
?>

philric
Débutant
Débutant
Messages : 4

lun. janv. 25, 2010 7:37 pm  

bonjour
je vois que je suis pas le seul a avoir ce genre de problème depuis 3 /4 jours j'ai ouvert un "ticket" les réponses sont a cotes des questions posées, quel regret d'avoir mis les pieds chez LWS ...je vais donc poster mon problème ici des fois que quelqu'un aurait une solution:
ma boutique était hébergée chez free et le script d'envoi de commande fonctionnait parfaitement, depuis qu'il est chez LWS il ne fonctionne plus, j'ai changer la ligne $_request dans $from par une adresse rattachée au nom de domaine comme expliqué sur le site LWS mais ca ne fonctionne pas et je n'ai pas des réponse des sois disant technicien, voici le script:

<?PHP

// ***************************************************************************
// Copyright (c) 2005, Frank Fokke
// Copyright (c) 2005-2006, LogiVert (r)
//
// Basic code has been developed by Frank Fokke.
// Further development and coding by LogiVert.
// ***************************************************************************

$from = "info@bigboystoysfr.com"['From'];
$to = $_REQUEST['To'];
$subject = $_REQUEST['Subject'];
$subjectmailclient = $_REQUEST['SubjectMailClient'];
$messageplain = $_REQUEST['Message'];
$messagehtml = $_REQUEST['Messagehtml'];
$attachment = $_REQUEST['Attachment'];
$orderid = $_REQUEST['OrderID'];
$redirect = $_REQUEST['redirect'];

$text=stripslashes($messageplain);
$text=str_replace("\r\n","\n",$text);
$messagehtml=str_replace("<LV_034/>","\"",$messagehtml);
$messagehtml=str_replace("<LV_061/>","=3D",$messagehtml);

$mime_boundary = "<<<--==+X[".md5(time())."]";

//save order on server*********************


//mail to client*********************

$headers .= "From: ".$to."\n";

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed;\n";
$headers .= " boundary=\"".$mime_boundary."\"";

$message .= "This is a multi-part message in MIME format.\n";
$message .= "\n";
$message .= "--".$mime_boundary."\n";

$message .= "Content-Type: text/html; charset=ISO-8859-1\n";
$message .= "Content-Transfer-Encoding: quoted-printable\n";
$message .= "\n";
$message .= $messagehtml;
$message .= "\n";
$message .= "--".$mime_boundary."\n";

$message .= "Content-Type: application/octet-stream;\n";
$message .= " name=\"".$subjectmailclient.".txt\"\n";
$message .= "Content-Transfer-Encoding: 8bit\n";
$message .= "Content-Disposition: attachment;\n";
$message .= " filename=\"".$subjectmailclient.".txt\"\n";
$message .= "\n";
$message .= $messageplain;
$message .= "\n";

mail("$from", "$subjectmailclient", $message, $headers);

//mail to shop owner*********************

$headers = "";
$message = "";

$headers .= "From: ".$from."\n";

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed;\n";
$headers .= " boundary=\"".$mime_boundary."\"";

$message .= "This is a multi-part message in MIME format.\n";
$message .= "\n";
$message .= "--".$mime_boundary."\n";

$message .= "Content-Type: text/html; charset=ISO-8859-1\n";
$message .= "Content-Transfer-Encoding: quoted-printable\n";
$message .= "\n";
$message .= $messagehtml;
$message .= "\n";
$message .= "--".$mime_boundary."\n";

$message .= "Content-Type: application/octet-stream;\n";
$message .= " name=\"order-".$orderid.".lce\"\n";
$message .= "Content-Transfer-Encoding: 8bit\n";
$message .= "Content-Disposition: attachment;\n";
$message .= " filename=\"order-".$orderid.".lce\"\n";
$message .= "\n";
$message .= $attachment;
$message .= "\n";

$ok = mail("$to", "$subject", $message, $headers);

if ($ok) {
echo "<script type='text/javascript'>parent.frame_body.location.href='$redirect';</script>";
}ELSE{
echo "Mail problem.\n\nPlease contact the shop owner.";
}

?>

  •   Information
  • Qui est en ligne ?

    Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 31 invités