close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Getting data from checkboxes in a repeated table into an Email template

Thread began 6/19/2012 10:47 am by Rune Brynestad | Last modified 6/19/2012 12:09 pm by Jason Byrnes | 332 views | 3 replies |

Rune Brynestad

Getting data from checkboxes in a repeated table into an Email template

Please check this page on live URL:
Kunde_skjema.php

At the buttom of the page there is a repeated table with multimpe checkboxes. I want to use the checked values in an email template.

I have done the following:

Put this code at the top of my form page:

<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
}
?>

Created an array for the checkboxes:
<input type="checkbox" name="Fasiliteter[]" id="Fasiliteter" value"<?php echo $row_rsFasiliteter['Norsk']; ?>"/>

If I'm checking for 4 options, I get "on, on, on, on" in my Email, not the correct value for the checkbox.

I'm attaching my form page and my Email template page.

Thanks in advice.

Regards
Rune

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

Jason ByrnesWebAssist

the code for the value:
value"<?php echo $row_rsFasiliteter['Norsk']; ?>"

is missing the equals sign, it should be:
value="<?php echo $row_rsFasiliteter['Norsk']; ?>"

Sign in to reply to this post

Rune Brynestad

Yes, of course.

The devil lives in the details -:)

Thanks again for looking into this.

Regards
Rune

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