close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

using radio buttons to determine who receives the email

Thread began 3/24/2009 10:34 am by sandy170299 | Last modified 3/25/2009 8:50 am by sandy170299 | 2131 views | 4 replies |

sandy170299

using radio buttons to determine who receives the email

I currently have a couple of contact forms that are built in ColdFusion that contain radio buttons which determine who receives the emails. The client is now requesting a CAPTCHA. Because there is nothing that I am aware of out there that includes a CAPTCHA with any kind of ColdFusion form builder, I usually end up building my own. I am considering migrating these forms to PHP and using the Contact Form Solution Pack with the built-in CAPTCHA, but I know I will not be able to figure this one out myself, as I am not a PHP programmer. Is there an example anywhere on the WA site that could point me in the right direction? The fields used will be very standard, but the radio buttons determine who receives the emails, and not knowing PHP, I'm going to have trouble.

Sign in to reply to this post

Ray BorduinWebAssist

Use php if possible... it is easier and more similar to CFML than you think, so don't be afraid.

1) Start with the contact form solution pack and get it working.

2) Then add the radio buttons and get them looking the way you want

Then you will be ready to tie the radio buttons into the email from field. This won't be too difficult, but I suggest you post back here once you have the first two steps completed and it will be relatively easy to give you the line or two of code you need to get the rest done.

Sign in to reply to this post

sandy170299

Here is the link to my PHP form so far: request-information.php. I'm having a couple of problems. All fields are required, and that's working, but the CAPTCHA field is not completely working. It will accept any value as long as it's not empty, and I'm sure that has something to do with me screwing something up in the validations :)

Now, for each radio button options, the emails need to go to multiple recipients, different multiple recipients for each radio button value.

I've done this through code with ColdFusion, but do not have a clue as to how to do it with PHP. This is my first real PHP form.

Thank you for your help :)

Sign in to reply to this post

Ray BorduinWebAssist

It appears your server validations aren't on the page properly. They make the captcha validation work.

You can probably just set the email addresses as a semi-colon separated list. Then use the radio button posted value as the to address.

Sign in to reply to this post

sandy170299

Thanks, Ray. I've already written in the code in ColdFusion to determine who receives the email based on the radio button selected. Unfortunately, I need to get this done this morning and I'm just having too much trouble with the PHP conditional statements and the syntax to give this any more time right now. I'll probably just end up building the captcha myself again. Between now and next time this comes along, I'll try to work on my syntax. Thanks for the advice...

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