Home > struktur > English > special tags > module tags > formtoemail > Create a custom submission form

Create a custom submission form
 

With the help of the Formtoemail Tags you can design your own submission form. Here is a sample code. Please, copy and paste it in HTML-mode when creating a text fact.

 

<advancedparser/><html>

<loadmodule formtoemail>

<no_emailobfuscation/>


<style type="text/css">

.mytext { border: 1px solid #330000; font-size: 11px; }

</style>

<form action="/formtoemail/send.comp" method="post" name="requestform" style="margin: 0px;">

<thispageformtoemailindex/>

<input name="forumid" value="<forumid>" type="hidden">
<input name="currenturl" value="455671.0/" type="hidden">
<input name="succsessurl" value="455671.0/" type="hidden">
<input name="recepients" value="filipov@factline.com" type="hidden">
<input name="emailtype" value="html" type="hidden">
<input name="sender" value="support@factline.com" type="hidden">

<input name="subject" value="Contactform from <platformtitle/> (<forumid/>)" type="hidden">

<input name="fields" value="names,email,text" type="hidden">
<input name="textfields" value="names,email" type="hidden">
<input name="textareafields" value="text" type="hidden">

<input name="vld_required" value="names,email" type="hidden">
<input name="vld_integer" value="" type="hidden">
<input name="vld_maxlength" value="" type="hidden">
<input name="vld_minlength" value="" type="hidden">
<input name="vld_email" value="email" type="hidden">
<input name="vld_url" value="" type="hidden">
<input name="vld_date" value="" type="hidden">

 <span style="color: #990000;"><formtoemail_errors/></span>
<table border="0" cellpadding="1" cellspacing="1">
<tr>
  <td valign="top" width="150">Names</td>
  <td valign="top"><input name="names" value="<formtoemail_value names>" class="mytext" style="width: 240px;" type="text"></td>
</tr>
<tr>
  <td valign="top" width="150">Email</td>
  <td valign="top"><input name="email" value="<formtoemail_value email>" class="mytext" style="width: 240px;" type="text"></td>
</tr>
<tr>
  <td valign="top" width="150">Text<br></td>
  <td valign="top"><textarea name="text" class="mytext" style="width: 400px; height: 90px;"><formtoemail_value text></textarea></td>
</tr>
<tr>
  <td valign="top" width="150">Captcha<br></td>
  <td valign="top"><captcha/>Please enter in this field the digits that you see on the image.</td>
</tr>

<tr>
  <td></td>
  <td><input value="Send" class="coolbutton" style="width: 150px;" type="submit"></td>
</tr>
</table>

</form>
</html>

 

In order to customize the sender's and the recepient's email, please change the highlighted in yelow lines.

 

When the form is submitted, there can be displayed a message for successful sending. In order to define such text create a fact with your message and place its infoID instead of the one in green.

 

Please, also replace the infoID in brown with the one of the submission form.

 

And here is the result:

 

Names
Email
Text
Captcha
  =  
Please enter in this field the digits that you see on the image.







Metainfo:
Autor: factline Webservices GmbH; Copyright: factline Webservices GmbH; Publiziert von: factline Webservices (factline5)
factID: 1546103.7 (...Archiv); Publiziert am 31 Jän. 2011 08:41
 
Verknüpfungen:
struktur  >  English  >  special tags  >  module tags  >  formtoemail 
struktur  >  English  >  Manuals  >  p-admin manuals  >  HowTo 
 
Verweis(e) (1):
Formtoemail Tags22 Nov. 2010factinclude