Jump to content

Recommended Posts

Posted

Upon receipt of the formmail (after user submits form) the E-mail contains all of the form data except the type="checkbox" values do not appear. Example, one of the questions is as follows:

 

What do you remember most about your meal?

 

input name="Likes_dislikes" type="checkbox" id="Main Course" value="Liked Main Course">

Main Course

 

input name="Likes_dislikes" type="checkbox" id="Service" value="Liked Service">Service

 

 

Please review the source:

http://lafamiglia.com/Comments.php

 

For some reason, if a user checks the both "Main Course" box and the "Service" box (or any of the other check boxes) when the formmail data in received is shows only the following:

 

Likes_dislikes: If other please specify

 

 

Any idea as to why it fails to show the data as checked?

Posted

Sorry, I don't use formmail so I don't know why it fails ;)

But we have some family members that do use it, so maybe they will be able to help you.

Posted

I don't know or use formmail.

My first guess is that the variable isn't recognized as an array.

From what you say, you can select more than two options so the varable must be an array.

Long shot but you could try to put [] behind Likes_dislikes

>Likes_dislikes[]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...