[Typo3-german] th_mailformplus prüft input felder nicht.
Marcel Alburg
marcel.alburg at alkronet.info
Fri Jul 29 01:55:16 CEST 2005
hallo,
ich bin gerade dabei mailfromplus einzurichten udn das geht auch super.
aber ich hab das problem, das keine fehlermeldungen angezeigt werden,
wenn nichts angeklickt/"leer ist" wurde.
ich hab bei der zeile wo man eiingeben soll welche felder getestet
werden sollen auch alle nötigen felder drin
surename,email,topic,contact_via,subject,message
template setup
plugin.tx_thmailformplus_pi1.saveDB = 1
plugin.tx_thmailformplus_pi1.saveDB {
dbTable = tt_content
fileUpload = uploads/contact/
fileTypes = *
# set maximum filesize to 100Kb
fileSize = 2000000
# change "96" to an existing page-ID in your TYPO3 project
# dbinsert=pid:39,hidden:0,CType:textpic
# if dbkey is not set: "uid" is taken
dbkey =uid
# [inputFieldName]:[DBName]
mapping=surename:name,address:address,phone:phone,fax:fax,email:email,topic:topic,contact_via:contact_via,subject:subject,message:message
}
[globalVar = GP:contact_me_via=email]
plugin.tx_thmailformplus_pi1.default.email_requiredfields =
email,name,topic,subject,message
[end]
[globalVar = GP:contact_me_via=phone]
plugin.tx_thmailformplus_pi1.default.email_requiredfields =
phone,name,topic,subject,message
[end]
[globalVar = GP:L=0]
plugin.tx_thmailformplus_pi1.default.email_htmltemplate
= ../../fileadmin/templates/mailformplus.tmpl
[global]
template datei
<table class="contact">
<form name="Formular" onSubmit="return chkFormular()" method="post"
action="/index.php/15/0/" enctype="multipart/form-data">
<input type="hidden" name="id" value="###PID###"/>
<input type="hidden" name="submitted" value="1"/>
<input type="hidden" name="L" value="0"/>
<tr>
<td><strong>Name:</strong></td>
<td><input type="text" name="surename" value="###value_surename###"
class="text"/></td>
</tr>
<tr>
<td colspan="2">###error_surename###</td>
</tr>
<tr>
<td><strong>Adresse*:</strong></td>
<td><input type="text" name="address" value="###value_address###"
class="text"/></td>
</tr>
<tr>
<td colspan="2" class="error">###error_address###</td>
</tr>
<tr>
<td><strong>Telefon*:</strong></td>
<td><input type="text" name="phone" value="###value_phone###"
class="text"/></td>
</tr>
<tr>
<td colspan="2" class="error">###error_phone###</td>
</tr>
<tr>
<td><strong>Telefax*:</strong></td>
<td><input type="text" name="fax" value="###value_fax###"
class="text"/></td>
</tr>
<tr>
<td colspan="2" class="error">###error_fax###</td>
</tr>
<tr>
<td><strong>E-Mail:</strong></td>
<td><input type="text" name="email" value="###value_email###"
class="text"/></td>
</tr>
<tr>
<td colspan="2" class="error">###error_email###</td>
</tr>
<tr>
<td valign="top"><strong>Thema:</strong></td>
<td>
<select name="topic" class="text">
<option value="empty" ###selected_topic_empty###></option>
<option value="webdesign"
###selected_topic_webdesign###>Webdesign</option>
<option value="feedback"
###selected_topic_feedback###>Feedback</option>
<option value="feedback" ###selected_topic_price###>Kosten
für ...</option>
</select>
</td>
<tr>
<td colspan="2" class="error">###error_topic###</td>
</tr>
<tr>
<td valign="top"><strong>Kontakt:</strong></td>
<td>
<input type="radio" name="contact_via" value="email"
style="border-style:none;" ###checked_contact_via_email###/>E-Mail
<input type="radio" name="contact_via" value="phone"
style="border-style:none;" ###checked_contact_via_phone###>Telefon
</td>
</tr>
<tr>
<td><strong>Betreff:</strong></td>
<td><input type="text" name="subject" value="###value_subject###"
class="text"/></td>
</tr>
<tr>
<td colspan="2" class="error">###error_subject###</td>
</tr>
<tr>
<td valign="top"><strong>Nachricht:</strong></td>
<td><textarea name="message" cols="50"
rows="20">###value_subject###</textarea></td>
</tr>
<tr>
<td valign="top"><strong>Anlagen:</strong></td>
<td>
<input type="file" name="photo" size="30" maxlength="50000"
accept="*"/><br/>
<input type="file" name="photo2" size="30" maxlength="50000"
accept="*">
</td>
</tr>
<tr>
<td colspan="2">###error_filesize######error_filetype###</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Senden"/></td>
</tr>
</form>
</table>
<!-- ###TEMPLATE_FORM### end -->
<!-- ###TEMPLATE_SUBMITTED_OK### begin
OPTIONAL - will be shown if form was submitted and all required fields
were filled out
-->
<b>Vielen Dank für ihre Mail. Wir werden versuchen so schnell wie
Möglich mit ihnen Kontakt aufzunehmen.</b>
<!-- ###TEMPLATE_SUBMITTED_OK### end -->
<!-- ###TEMPLATE_EMAIL_USER### begin
OPTIONAL - this will be the email text that is sent to the user
(plaintext!)
-->
Hallo ###surename###,
Sie haben uns folgende Daten mitgeteilt:
Name: ###surename###
Adresse: ###address###
Telefon: ###phone###
Telefax: ###fax###
E-Mail: ###email###
Theme: ###topic###
Kontakt: ###contact_via###
Betreff: ###subject###
Nachricht: ###message###
Vielen Dank
Ihr AlKroNet Team
<!-- ###TEMPLATE_EMAIL_USER### end -->
<!-- ###TEMPLATE_EMAIL_RECEIVER### begin
OPTIONAL - this will be the email text that is sent to the admin
(plaintext!)
(admin-email = the email you can specify in the mailformplus plugin)
-->
Hallo,
Ein User sendet folgende Daten:
Name: ###surename###
Adresse: ###address###
Telefon: ###phone###
Telefax: ###fax###
E-Mail: ###email###
Theme: ###topic###
Kontakt: ###contact_via###
Betreff: ###subject###
Nachricht: ###message###
the user has uploaded the following files:
###photo###
###photo2###
<!-- ###TEMPLATE_EMAIL_RECEIVER### end -->
<!-- ###TEMPLATE_ERROR### begin
OPTIONAL ? this section holds the error texts for the input fields.
Only a primitive server side check is supported: you can specify fiels
that have to be filled out. If not, this error message is shown.
-->
<!-- ###ERROR_START### begin
this is used for the global error marker ###ERROR### -->
Folgende Fehler sind aufgetreten:
<!-- ###ERROR_START### end -->
<!-- ###ERROR_END### begin
this is used for the global error marker ###ERROR### -->
<!-- ###ERROR_END### end -->
<!-- ###ERROR_FILESIZE### begin
this is used if you use the file upload functionality -->
Datei ist zu groß!
<!-- ###ERROR_FILESIZE### end -->
<!-- ###ERROR_FILETYPE### begin
this is used if you use the file upload functionality -->
Datei ist nicht erlaubt!
<!-- ###ERROR_FILETYPE### end -->
<!-- ###ERROR_surename### begin -->
Sie müssen einen Namen angeben!
<!-- ###ERROR_surename### end -->
<!-- ###ERROR_email### begin -->
Sie müssen eine E-Mail Adresse angeben!
<!-- ###ERROR_email### end -->
<!-- ###ERROR_topic### begin -->
Sie müssen ein Thema auswählen!
<!-- ###ERROR_topic### end -->
<!-- ###ERROR_contact_via### begin -->
Wählen sie ein Kontaktart aus!
<!-- ###ERROR_contact_via### end -->
<!-- ###ERROR_subject### begin -->
Bitte geben sie einen Betreff ein!
<!-- ###ERROR_subject### end -->
<!-- ###ERROR_message### begin -->
Sie müssen einen Nachricht eingeben!
<!-- ###ERROR_message### end -->
<!-- ###TEMPLATE_ERROR### end -->
More information about the TYPO3-german
mailing list