close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Form data not correct when sent via email.

Thread began 9/30/2009 10:55 pm by jasonkline326722 | Last modified 8/16/2010 10:50 am by jasonkline326722 | 4273 views | 5 replies

Eric Mittman

It looks like you are just sending the looped over posted values in the message. This is one way to get a forms information sent but as you can see it does not always give you the desired result. The problem with the values that are showing up as arrays is because only the name of the variable was referenced and not a subscript of the array.

For the 'best times' this is a multi select list on your page so the information will be contained in an array, the same goes for the checkboxes for confirm by.

To get around this you can use the php implode function on the array to get the values into a single string. Here is a link to the function page:

php.net/implode

If the script that is doing the mailing is not one that you have any access to for editing I would suggest that you try a different approach for sending the info. The Universal Email tool that we offer will allow you to craft the message in DW and use the bindings like you would normally use. You can then update the code to implode the array or loop over it and print the values out one at a time. Another function that would list the contents of the array is var_dump(), but it is not very clean looking and is normally used for debugging purposes.

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