Forums / Developer / feedback-form contact
Bienvenu Isaac Kanyinda
Monday 20 April 2009 2:24:24 am
Contact form
Hello Family ez
I have a serious problem. I have set up a contact form for my site I am building with ez. The form with the fields colleted info. The form have a problem for sending the message the sender is Nobody and content is empty.I am looking for help
my codes
{include name=Validation uri='design:content/collectedinfo_validation.tpl' class='message-warning' validation=$validation collection_attributes=$collection_attributes} <div> <div id="hard" class="centre" style="color:blue;"><br/><center><h3>Contact</h3></center></div> <br/><br/> <div> <p> Pour toute question, n'hésitez pas à utiliser ce formulaire pour nous écrire. </p> </div> <div> <form method="post" action={"content/action"|ezurl}> <p class="help" ><br/><br/></p> <p><br/> <label for="field_896">Adresse e-mail :</label><br/> <input class="text" type="texte" id="233" size="66" name="ContentObjectAttribute_data_text_896" value="" /> {$node.data_map.email.contentclass_attribute.name} {attribute_view_gui attribute=$node.object.data_map.email} </p> <p> <label for="field_670">Sujet :</label><br/> <input class="text" type="texte" id="232" size="66" name="ContentObjectAttribute_ezstring_data_text_670" value="" /> {$node.data_map.subject.contentclass_attribute.name} {attribute_view_gui attribute=$node.object.data_map.subject} </p> <p> <label for="field_671">Texte :</label><br/> <textarea class="box" name="ContentObjectAttribute_data_text_671" id="231" cols="50" rows="10"> </textarea> {$node.data_map.message.contentclass_attribute.name} {attribute_view_gui attribute=$node.object.data_map.message} </p> <p> <input type="hidden" name="ContentNodeID" value="169" /> <input type="hidden" name="ContentObjectID" value="22" /> <input type="hidden" name="ViewMode" value="full" /> <input type="submit" class="button" value="Envoyer" name="ActionCollectInformation" /> </p> </form> </div> </div>
Petit poisson deviendra grand pourvu que Dieu lui prête vie. Petit oiseau volera un jour de ses propres ailes pourvu que Dieu lui ajoute le nombre de jours sur terre.
Gert
Wednesday 22 April 2009 10:53:52 am
Hi,
make sure you have your collect.ini.append.php settings right and have includeda template in
design/templates/content/collectedinfomail
with your form's name as a filename.
Regards,
canguro web solutions consulting & development http://www.canguro.at
Thursday 23 April 2009 3:52:46 am
I used the class feedback_form ez. The name of my class is feedback_form and type feedback_form. The object that I created is Contact.It's my collect.ini
[InfoSettings] TypeList[feedback_form]=feedback_form [EmailSettings] SendEmailList[feedback_form]=enabled [DisplaySettings] DisplayList[feedback_form]=result [CollectionSettings] CollectionUserDataList[feedback_form]=multiple
And the template of contact form
{include name=Validation uri='design:content/collectedinfo_validation.tpl' class='message-warning' validation=$validation collection_attributes=$collection_attributes} <div> <div class="long" style="padding-left:25px;">{$node.object.name}</div> <br/><br/> <div class="aide"> <p> Pour toute question, n'hésitez pas à utiliser ce formulaire pour nous écrire. </p> </div> <div class="aide"> <form method="post" action={"/content/action"|ezurl}> <p class="help" ><br/></p> <p><br/> {$node.data_map.email.contentclass_attribute.name} (*)<br/> {attribute_view_gui attribute=$node.object.data_map.email} </p> <p> {$node.data_map.subject.contentclass_attribute.name} (*)<br/> {attribute_view_gui attribute=$node.object.data_map.subject} </p> <p> {$node.data_map.message.contentclass_attribute.name} (*)<br/> {attribute_view_gui attribute=$node.object.data_map.message} </p> <p> <br/> (*) Obligatoire <br/> </p> <p> <br/> <input type="hidden" name="ContentNodeID" value="{$node.node_id}" /> <input type="hidden" name="ContentObjectID" value="{$node.object.id}" /> <input type="hidden" name="ViewMode" value="full" /> <input type="submit" class="button" name="ActionCollectInformation" value="{"Envoyer"|i18n("design/ezwebin/full/feedback_form")}"/> </p> </form> </div> </div>
A major step is the mail goes in the back office but the problem remains in the email address of the webmaster email comes as no content flag with no objections.
Thank you for your help