close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Check box value not transferring

Thread began 9/21/2010 11:00 am by Badger | Last modified 4/12/2011 8:44 am by Jason Byrnes | 2194 views | 7 replies |

Badger

Check box value not transferring

Hi. I have a lovely WAFB form being emailed using WAUE. Everything being emailed except three check box values.

I used the bindings panel to add the values to the UE page and they all work except the check boxes.

In the UI for editing the check boxes (called CSS Form Builder - List Values):

I've got 3 different "Item label" the same as 3 "Value" as that's what I want emailed. Should this be a numeric or other value?. There is no validation required (and it's not ticked).

The only other thing I can see that might causing the values not to be emailed is the Legend and Title are used in the form field "name" and "id" which in this case is over 80 characters. If that is too long, should I enter a shorter value in the CSS Form Builder edit and hand code something afterwards.

Or something else is the issue?

BTW, my help button won't open any help files in Google Chrome. Any ideas?

B

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page so I can take a look at the code.

Sign in to reply to this post

Badger

Thanks Janson

Attached Files
Items_Detail.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

OK, so its a multi checkbox.


with a multi checkbox, can you send the webassist/email folder so i can see how the message is coded.

Sign in to reply to this post

Badger

here it is...

Attached Files
email.zip
Sign in to reply to this post

Jason ByrnesWebAssist

when working with a multiple checkbox, the selected items are added to an array.


you need to use the implode(); function to convert the array to a comma separated list.


in the code to display the checkbox values, you have:

php:
$MailBody = $MailBody .  ((isset($_POST["Other_services_group_Enquire_about_our_other_Chandelier_Group_services_tick_box_to_select[]"]))?$_POST["Other_services_group_Enquire_about_our_other_Chandelier_Group_services_tick_box_to_select[]"]:"");




this needs to be changed to:

php:
$MailBody = $MailBody .  ((isset($_POST["Other_services_group_Enquire_about_our_other_Chandelier_Group_services_tick_box_to_select"]))?implode(", ",$_POST["Other_services_group_Enquire_about_our_other_Chandelier_Group_services_tick_box_to_select"]):"");
Sign in to reply to this post

Badger

using:

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

Giver the error message:

Parse error: syntax error, unexpected ')', expecting ']' in /www/visp/hollywo1/chandeliergroup.com/webassist/email/waue_Items_Detail_4.php on line 91

Sign in to reply to this post

Jason ByrnesWebAssist

try this then:

php:
$MailBody = $MailBody .  ((isset($_POST["Other_services_group_Enquire_about_our_other_Chandelier_Group_services_tick_box_to_select"]))?implode(", ",$_POST["Other_services_group_Enquire_about_our_other_Chandelier_Group_services_tick_box_to_select"]):"");
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...