Home > Structure > Handbücher > P-Admin Handbuch > HowTo > Benutzerdefinierte Eingabeform erstellen
A newer version of this fact exists. (view)
Benutzerdefinierte Eingabeform erstellen
 

Mit Hilfe des Formtoemail Tags können Sie eine eigene Eingabeform erstellen. Hier gibt es eine Beispielcode. Bitte, kopieren und fügen Sie das im HTML-Modus eines Textfacts.

 

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/>Bitte obenstehende Zeichen in dieses Feld eingeben.</td>
</tr>

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

</form>
</html>

 

Um den Absenders und Empfängers E-Mail anzupassen, bitte ändern Sie die in gelb farbig unterlegten Linien.

 

Wenn die Form abgeschickt wird, kann es eine Meldung für ein erfolgreiches Absenden angezeigt werden. Um diesen Text festzulegen, erstellen Sie einen fact mit Ihrer Nachricht und legen Sie seine infoID anstelle des diese mit der grünen Farbe.

 

Bitte ersetzen auch die infoID in braun mit der von der Eingabeform.

 

Names
Email
Text
Captcha
  =  
Bitte obenstehende Zeichen in dieses Feld eingeben.





Metainfo:
Author: factline Webservices GmbH; Copyright: factline Webservices GmbH; Published by: factline Webservices (factline5)
factID: 1546877.1; published on 24 Nov. 2010 13:00
 
Shortcuts: