Home > struktur > English > special tags > module tags > formtoemail > Create a custom submission form
Eine neuere Version dieses Facts existiert bereits.. (anzeigen:)

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 highligted lines.

 

And here is the result:

 

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

 




Metainfo:
AutorIn: factline Webservices GmbH; Copyright: factline Webservices GmbH; Publiziert von: Ivo Marinov (factline3)
factID: 1546103.1; Publiziert am 22 Nov. 2010 14:13
 
Verknüpfungen:
struktur  >  English  >  special tags  >  module tags  >  formtoemail 
struktur  >  English  >  Manuals  >  p-admin manuals  >  HowTo 
 
Verweis(e) (1):
Formtoemail Tags22 Nov. 2010factinclude