# radionButton php variable help/question

**URL:** https://forum.kirupa.com/t/radionbutton-php-variable-help-question/145753
**Category:** Uncategorized
**Created:** [April 25, 2005, 3:53pm UTC](https://forum.kirupa.com/t/radionbutton-php-variable-help-question/145753 "2005-04-25T15:53:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scottybuckets](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@scottybuckets](https://forum.kirupa.com/u/scottybuckets)
#### Post date: [April 25, 2005, 3:53pm UTC](https://forum.kirupa.com/t/radionbutton-php-variable-help-question/145753/1 "2005-04-25T15:53:36Z")

</div>

I’m hoping someone can help me here…

I set up a simple form (email text field and submit button with results) in flash for a php mailing list program I’ve been using for a while. it works fine… but I decided to add 2 radio buttons (TEXT & HTML) but I’m having problems getting them to send the right variables to the database. It should be fairly simple since theres only 2 choices and the variables are just as simple (the choices are TEXT is 0 & HTML is 1 and the variable is “type”).

Heres the variables i set-up for the rest of the form:

```auto
mymail_add = "http://www.mydomain.com/subfolder/add.php";
id = "mailinglist";
confirm = "SIGN-UP COMPLETE!";
action = "send";
error1 = "VALID EMAIL REQUIRED";
error2 = "NAME REQUIRED";

```

I gave the 2 radio buttons variables but how would I add the variables to the AS list above?  
I tried adding:

```auto
type = 1;

```

but that just made it default to HTML, i need the user to be able to pick which way theyd like to recieve emails…

any ideas?  
thanks
