close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Blank checkbox responces in email

Thread began 5/26/2010 12:03 pm by christina.elissa4324782 | Last modified 5/26/2010 2:15 pm by Jason Byrnes | 627 views | 3 replies |

christina.elissa4324782

Blank checkbox responces in email

I created a form with checkboxes in it. When the email is sent the values are not there, they are blank.

The code that was generated for the form:

<span id="Appointment_request_group_Confirm_by__1_Spry"> <span class="checkFieldGroup_Wide"> <span class="checkGroup_Wide">
<label class="checkSublabel_Wide" for="Appointment_request_group_Confirm_by__1" onblur="hideServerError('Appointment_request_group_Confirm_by__1_ServerError');"> Email&nbsp;
<input type="checkbox" name="Appointment_request_group_Confirm_by[]" id="Appointment_request_group_Confirm_by__1" value="Email" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("contact","Appointment_request_group_Confirm_by"):""),"Email"))) {echo "checked=\"checked\"";} ?> tabindex="7" />
</label>
<label class="checkSublabel_Wide" for="Appointment_request_group_Confirm_by__2" onblur="hideServerError('Appointment_request_group_Confirm_by__1_ServerError');"> Phone&nbsp;
<input type="checkbox" name="Appointment_request_group_Confirm_by[]" id="Appointment_request_group_Confirm_by__2" value="Phone" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("contact","Appointment_request_group_Confirm_by"):""),"Phone"))) {echo "checked=\"checked\"";} ?> tabindex="8" />
</label>
</span> </span> <span class="checkboxMinSelectionsMsg">Please
select a valid value.</span><span class="checkboxRequiredMsg">Please
check the box associated with the best way of contacting
you or click both.</span> </span>
<?php
if (ValidatedField('contact','contact')) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "7" . ",") !== false || "7" == "")) {
if (!(false)) {
?>

and the the WAUE_contact_1.php file generated:

$MailBody = $MailBody . ((isset($_POST["Appointment_request_group_Contact_by"]))?implode(", ", $_POST["Appointment_request_group_Contact_by"]):"");

am I missing something?

Thank you in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

the name of you checkboxes is "Appointment_request_group_Confirm_by[]";
name="Appointment_request_group_Confirm_by[]"


your code is looking for an element named "Appointment_request_group_Contact_by":

$MailBody = $MailBody . ((isset($_POST["Appointment_request_group_Contact_by"]))?implode(", ", $_POST["Appointment_request_group_Contact_by"]):"");



change that to:
$MailBody = $MailBody . ((isset($_POST["Appointment_request_group_Confirm_by"]))?implode(", ", $_POST["Appointment_request_group_Confirm_by"]):"");

Sign in to reply to this post

christina.elissa4324782

thanks

thank you, completely missed that

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...