Forums

PHP in Email Template - Radiobutton

BergerJPB 26 Apr, 2012
I dont become all field results in the email and have no idea meanwhile 😟

My Form have ...
RadioGroup with name 'Einheiten',
Checkbox with name 'Haken_SW_Vertrag',
RadioGroup with name 'Zahlungsbedingungen'

In my Email Template ...
<?php
 $varEinheiten = $form->data['Einheiten'];
 $varWartungsvertrag = $form->data['Haken_SW_Vertrag'];
 $varZahlungsbedingungen = $form->data['Zahlungsbedingungen'];

 echo $varEinheiten; echo '<br>';
 echo $varWartungsvertrag; echo '<br>';
 echo $varZahlungsbedingungen; echo '<br>';
?>
<br>
{Einheiten}<br>
{Haken_SW_Vertrag}<br>
{Zahlungsbedingungen}<br>


the result is ...
<br>1<br>Nachnahme<br><br>50<br>1<br>Nachnahme<br>


So the 1st radiogroup is unreachable, any idea ?
I checked the forum and found the "Handle Arrays" Event but i dont understand it, how to manage this and how to change my email template.

Sorry for my english (maybe), answers in german will be welcome too πŸ˜€
GreyHead 26 Apr, 2012
Hi BergerJPB,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.

Bob
BergerJPB 26 Apr, 2012
:D πŸ˜€

BIG TY !! ... i fixed my form meanwhile, the BIG tip was the DEBUG include, that showed me i used wrong fieldnames in the email template, in the php section ... yes i posted here a dummy, a short form of my template to point the problem. After viewing the DEBUG output i saw my mistake, fixed the fieldnames and it worksπŸ˜€

The DEBUG showed me good my other problem, saving the date in the database, TY DEBUG so i fixed this meanwhile too. Maybe interesting 4 you, or maybe its my server ... i created the table with low and HIGH cases in the name, but the tablename is now lowcase only, so my store to a lowHIGHtable failed.

Once again BIG TY, and a BIG TY for the DEBUG tip !!
This topic is locked and no more replies can be posted.