Custom HTML Form
Using Universal Email 4 to send email from a form created with CSS Form Builder 1.x
Everything works fine with the standard email template (used block.php) but since this is not very clean I designed my own form using DW html from within your app..
All the fields I needed came out on my HTML form OK except for the field which is type "list" (has a number of products to choose from)
Now there is a difference in the code for this list field when I drag if from the Bindings panel
(see Product below, below Telephone - telephone works fine)
You can see that Product has an extra [].
If I manually remove the [] the form is emailed with the word "Array" in the product field which makes sense
If I leave it with the [] then the form is emailed empty in the product field
How do I bind the field which I guess is or could be an array of more than one product??
I also see in the preview panel within Universal email, "Dynamic Value" appears next to product..
You template form block.php handles the products field just fine by listing one product after the other..
<td>Telephone</td>
<td><?php echo ((isset($_POST["Contact_Us_group_Telephone"]))?$_POST["Contact_Us_group_Telephone"]:"")?></td>
</tr>
<tr>
<td>Product</td>
<td><?php echo((isset($_POST["Contact_Us_group_Product[]"]))?$_POST["Contact_Us_group_Product[]"]:"") ?></td>
</tr>
<tr>
Thanks
Richard