Differences

This shows you the differences between two versions of the page.

deutsch:phpwcms-system:artikel:contentparts:formular:spezielle-anwendungen:rechnen-im-feld [2009/05/13 03:19]
Knut Heermann (flip-flop)
deutsch:phpwcms-system:artikel:contentparts:formular:spezielle-anwendungen:rechnen-im-feld [2018/06/03 18:08] (current)
Line 19: Line 19:
\\ \\
 +Siehe auch dazu: [[deutsch/phpwcms-system/artikel/contentparts/formular/spezielle-anwendungen/php-script-u-funktion]]
------ ------
\\ \\
 +
===== Beispiel 01 ===== ===== Beispiel 01 =====
Line 57: Line 59:
------ ------
\\ \\
-===== Beispiel 02: Automatisches subject in E-Mail Formular ===== 
-Posted by markus s on Sun Oct 07, 2007 17:12 \\ 
-Forum: [[http://forum.phpwcms.org/viewtopic.php?p=111959#p111959]] 
- 
-> Ich hatte das Problem, dass ich mehrere "CP Artikel" hatte in denen sich jeweils ein Kontaktformular befindet (Für Kursanmeldung). Nun brauchte ich, nachdem sich ein Kunde über das Kontaktforumlar angemeldet hat, die Info zu diesem Kurs, ohne dass dies der Kunde extra eintragen muss. \\  
-> Und so gehts:  
-> 
-> 
-> **1.** Erstelle im Kontaktformular ein "hidden field" mit dem Namen "mailsubject". 
-> 
-> {{:deutsch:phpwcms-system:artikel:contentparts:formular:spezielle-anwendungen:hidden_field.jpg|}} 
->  
-> Schreibe in das Feld den "Wert": 
-> <code>[%GLOBAL_FORM_SUBJECT%]</code> 
-> und speichere das Formular. 
-> 
-> 
-> **2.** Füge in den Formularkopf unter "subject" ein: "Form: mailsubject" \\ 
-> {{:deutsch:phpwcms-system:artikel:contentparts:formular:spezielle-anwendungen:subject.jpg|}} 
-> 
-> 
-> **3.** Erstelle eine Datei im AscII-Editor mit folgendem Inhalt:  
-> <code php> 
-<?php 
-$content['all'] = str_replace('[%GLOBAL_FORM_SUBJECT%]', trim('your own text: ' . html_specialchars($content['article_title'])), $content['all']); 
-?> 
-</code> 
-> Speichere die Datei mit dem Namen "**email_subject.php**" in **template/inc_script/frontend_render/**  
-> oder lade einfach diese Datei herunter: {{:deutsch:phpwcms-system:artikel:contentparts:formular:spezielle-anwendungen:email_subject.zip|}} 
-> 
-> 
-> **4.** Jetzt ist der Artikeltitel im subject der E-Mail zu sehen - so können unterschiedliche Formulare identifiziert werden ...  
-> 
deutsch/phpwcms-system/artikel/contentparts/formular/spezielle-anwendungen/rechnen-im-feld.1242177549.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0