Using Implode in the Email Form
Greetings, I had a problem with this issue earlier.
showthread.php?t=16194&highlight=implode
I have attempted to follow Jason's instructions (which worked before) but this time it is still not generating anything in the final e-mail to the recipient?
<?php echo((isset($_POST["Appointment_Request_group_Best_Approximate_Time[]"]))?implode(", ",$_POST["Appointment_Request_group_Best_Approximate_Time[]"]):"") ?>
In the CSS form builder it adds the [] at the end, is this maybe what is wrong?
Here is the code from the form...
<label for="Appointment_request_group_Best_Approximate_Time" class="sublabel" >Best Approximate Time?:<span class="requiredIndicator"> *</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Appointment_request_group_Best_Approximate_Time_Spry">
<select class="formListfield_Medium" name="Appointment_request_group_Best_Approximate_Time[]" id="Appointment_request_group_Best_Approximate_Time" tabindex="5" multiple="multiple" onblur="hideServerError('Appointment_request_group_Best_Approximate_Time_ServerError');">
Any help would be appreciated!
Thanks,
Martin