Differences

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

english:phpwcms-system:article:contentparts:form:special-applications:automatic-subject [2009/04/25 08:06]
127.0.0.1 external edit
english:phpwcms-system:article:contentparts:form:special-applications:automatic-subject [2018/06/03 18:09] (current)
Line 1: Line 1:
{{indexmenu_n>10}} {{indexmenu_n>10}}
-====== Automatic subject ======+====== Data transfer to a form ======
-FIXME translate+**An example for using a automatic subject in form.**
-Post by markus_s \\ +Posted by markus_s \\ 
-Forum:[[http://forum.phpwcms.org/viewtopic.php?p=92977#p92977]]+Forum: [[http://forum.phpwcms.org/viewtopic.php?p=92977#p92977]]
-Wie man ein //hiddenfield// einbaut und nutzt kann man hier sehen...+**Using this tools you can write a hidden form field into the "subject" of the e-mail ...**
-Mit diesem Tool wird aus einem Formular ein verstecktes Feld in den "subject" des eMails geschrieben...+To use a //hidden field// please have a look ...
-> Problemstellung: In mehreren "Artikeln" befindet sich ein Kontaktformular. //(für Kursanmeldung)//  +Ok - if you want the name of the artikel in the mail subject  
-> Nun brauche ich, nachdem sich ein Kunde über das Kontaktforumlar angemeldet hat,  +to identify your contact forms, you need a new **.php** file in your frontend render.  
-> die Info zu diesem Kurs ohne dass dies der Kunde extra eintragen muss.  + 
-> Und so gehts:  + 
->  +**The problem:** \\ 
-1. Erstelle im Formular ein verstecktes Feld //(hidden field)// mit dem Namen ##mailsubject##.+In several "articles" I uses a form for contact. //(Course registration)//  
 +I need the info to this course without a specially registration,  
 +after a customer has registered himself by the contact form to this course
 + 
 + 
 + 
 +**Let´s go:**  
 +\\ 
 +**1.** Make in your contact form a ##hidden field## with the name ##mailsubject##.
{{:deutsch:andere-erweiterungen:hidden_field.jpg|}} {{:deutsch:andere-erweiterungen:hidden_field.jpg|}}
-<code php|h type in the field "Value":>+Type in the field "Value": 
 +<code>
[%GLOBAL_FORM_SUBJECT%] [%GLOBAL_FORM_SUBJECT%]
</code> </code>
and save this. and save this.
-2. Choose in the top ob the form under "subject" the "Form: mailsubject" \\+\\ 
 +**2.** Choose in the top ob the form under "subject" the "Form: mailsubject" \\
{{:deutsch:andere-erweiterungen:subject.jpg|}} {{:deutsch:andere-erweiterungen:subject.jpg|}}
-3. Make a file at your editor with the following content:+\\ 
 +**3.** Make a file at your editor with the following content:
<code php> <code php>
<?php <?php
Line 36: Line 47:
</code> </code>
-Save file with the name "email_subject.php" under template/inc_script/frontend_render or simply download the finished file HERE ({{:deutsch:andere-erweiterungen:email_subject.zip|email_subject.zip}})+Save the file with the name "email_subject.php" under template/inc_script/frontend_render or simply download the finished file HERE ({{:deutsch:andere-erweiterungen:email_subject.zip|email_subject.zip}})
-4. Now the article title is seen in the subject from your email - now, you can ident the different contact forms ...+\\ 
 +**4.** Now the article title is seen in the subject from your email - now, you can ident the different contact forms ...
 +Have a look too: [[english/phpwcms-system/article/contentparts/form/special-applications/send-a-friend|Send a friend]]
english/phpwcms-system/article/contentparts/form/special-applications/automatic-subject.1240639597.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