Page 1 of 1

Selected Radio button in email

Posted: Fri Jul 29, 2005 11:17 am
by flacooo
Hey all,

If you have a radio group in a HTML form and you would like to get only the selected radio button into the email that is generated, is there a chunk of code that can be placed inside the mail() or how would one go about doing something like this?

Thanks!
Jeff

Posted: Fri Jul 29, 2005 11:35 am
by Burrito
if you want to include radio buttons in your email, you're going to have to use HTML in your email.

search this forum for HTML and email and you'll find all the answers you need about how to include the correct headers in your email for HTML.

then to put the radio button in your email, you'll just use standard HTML formatting for the "body" part of your email message...

Posted: Fri Jul 29, 2005 11:40 am
by pickle
If you have a bunch of radio buttons, give them all the same name. Then, when the form is submitted, only the one that's checked off will be POSTed. Then just send that value in the email.

Posted: Fri Jul 29, 2005 3:36 pm
by flacooo
Thank you very much for the input. I will give it a go!