Differences

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

english:phpwcms-system:article:contentparts:form:special-applications:php-script-and-function:field-transfer-v2 [2010/07/18 16:35]
Claus
english:phpwcms-system:article:contentparts:form:special-applications:php-script-and-function:field-transfer-v2 [2018/06/03 18:09] (current)
Line 6: Line 6:
Advantages over V1: \\ Advantages over V1: \\
-The complete case of an error in the select menu "Ortsauswahl" will be covered. Even if a second incorrect input is following a first one, the focus will remain in the drop down box previously selected.  \\ +  * The complete case of an error in the select menu "Ortsauswahl" will be covered. Even if a second incorrect input is following a first one, the focus will remain in the drop down box previously selected.  \\ 
-The e-mail addresses are included in encoded form to give SPAM robots no selection possibility.+  * The e-mail addresses are included in encoded form to give SPAM robots no selection possibility.
 +<note>
 +Since version V1.4.7 R414 it is no longer necessary to apply in relation to "non-encrypted e-mail addresses" the method shown here. The e-mail addresses are encrypted from this version in the value field in FE.
 +</note>
\\ \\
Line 69: Line 72:
To my opinion we have to create 4 fields to get the desired results //(see below, 1-4)// because we must not manipulate an input field //(in this case "ortsauswahl")// any further (accidentally) in case of repeated input //(case of error/reload)//, otherwise the session will reset an input made previously. \\ To my opinion we have to create 4 fields to get the desired results //(see below, 1-4)// because we must not manipulate an input field //(in this case "ortsauswahl")// any further (accidentally) in case of repeated input //(case of error/reload)//, otherwise the session will reset an input made previously. \\
Therfore we'll make use of a simple input field //(Articlemenu)// which will not be changed through the script. The script will assign the eMail address to the chosen place with the help of s second hidden field where this relation is defined. \\ Therfore we'll make use of a simple input field //(Articlemenu)// which will not be changed through the script. The script will assign the eMail address to the chosen place with the help of s second hidden field where this relation is defined. \\
-This eMail address is stored fairly unreadable to prefvent SPAM-bots from reading them. //(Ort|Name*domain:tld# ---> Kleinbonum|obelix*lokal:arpa#)//. The #- sign is used as a between the different data and has to be set. +This eMail address is stored fairly unreadable to prevent SPAM-bots from reading them. //(Ort|Name*domain:tld# ---> Kleinbonum|obelix*lokal:arpa#)//. The #- sign is used as a between the different data and has to be set.
-Um den Ort im Ausgabetext zu verankern legen wir ein verstecktes Feld "ort" mit dem Inhalt "nix" an. Dieses Feld kann auch zur Identifikation des Formulars dienen, denn das frontend_init-Script wird bei jedem Seitenaufruf abgearbeitet! +To incorporate the "place" in an output text we are defining a new hidden field "ort" with "nix" as the content. This field can be used to identify the form, because the frontend_init-script will be run with every page call!
-Die eMailadresse wird im Script in das Feld "email" übergeben und kann so optional auch als Absenderadresse im Formular eingetragen werden //(Mit versteckten Feldern geht das nicht)//. +The eMail address will be passed over to the field "email" and therefor can be used as the senders address also //(you vannot do that with hidden fields)//.
\\ \\
Line 84: Line 87:
 if( isset($_POST['ort']) AND isset($_POST['ort_email']) ) { ...  if( isset($_POST['ort']) AND isset($_POST['ort_email']) ) { ...
</code> </code>
-So kann das Formular zumindest rudimentär identifiziert werden. Dies kann bei mehreren Formularen in der Site wichtig sein.+This way you can identify the form basically. It will be possibly helpful when more than one form has to be used.
-Der letzte Schritt ist die Filterung des Ortes und Zuweisung zur Variablen "$_POST['ort']" und "$_POST['email']". \\+The only step missing is filtering the "place" and assigning it to the variable "$_POST['ort']" und "$_POST['email']". \\
<code php |h form_script_email_to_location_v2.php |h> <code php |h form_script_email_to_location_v2.php |h>
english/phpwcms-system/article/contentparts/form/special-applications/php-script-and-function/field-transfer-v2.1279463722.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