close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form

Thread began 11/13/2012 8:37 am by sjuno299871 | Last modified 1/14/2013 10:55 am by Jason Byrnes | 3414 views | 25 replies |

sjuno299871

Form

I added a check box to my form (data Bridge) with check boxes yes and no how do I pass the yes or no value to the email? I am going to add to a database but one thing at a time ....
Right now it just shows Array
"Name: "Hello Juno "Email Address: "sjuno1@new.rr.com "Comments: "Test "Mailing List:"Array

Sign in to reply to this post

Jason ByrnesWebAssist

this is because the checkboxes are set to allow multiple selection.

add the following code at line 1 of your form page:

php:
<?php

if($_SERVER["REQUEST_METHOD"] == "POST")     {
    foreach(
$_POST as $key => $val) {
        if(
is_array($_POST[$key])) $_POST[$key] = implode(", "$_POST[$key]);
    }
}
?>
Sign in to reply to this post

sjuno299871

I want to add this check box to my user's table how do I do this? values?

Sign in to reply to this post

Jason ByrnesWebAssist

in the insert record behavior, bind the column to the checkbox form element.

Sign in to reply to this post

sjuno299871

Ok still not getting the yes or no response to email

Attached Files
formphp.pdf
Sign in to reply to this post

Jason ByrnesWebAssist

your form posts to the results.php page, the code i suggested should go at line 1 of the results.php page

Sign in to reply to this post

sjuno299871

Ok Jason all I want to do is to have a form to have them enter name, email, comments and a yes or no to a question,if they want a newsletter. Then I want an email sent(understand the email part) and store it in a table in the database. Just used the results page following the form tutorial have since changed the page acion to itself (form page)again everything came thru but the Newsletter info....my guess is I am not passing a Yes or No?

Attached Files
EmailRec.pdf
formphpcode.pdf
Sign in to reply to this post

Jason ByrnesWebAssist

in the universal Email behavior how are you setting up the body?

using the "Crate a File To manage the email body" option?
This is the easiest way to configure the email body, i recommend using this option.

or using the Dreamweaver edit option?
If using this option, make sure you are adding the binding for the News letter form element

Sign in to reply to this post

sjuno299871

I am using the email function in the Form Builder...using the Create a simple contact form, and email the contact information tutorial...

Sign in to reply to this post

Jason ByrnesWebAssist

that does not answer the question that was asked.

in the Universal Email server behavior, how are you configuring the body of the message?

have you selected the option to "Crate a File To manage the email body"?
This is the easiest way to configure the email body, i recommend using this option.

Sign in to reply to this post
loading

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...