Last 2 questions on forms i promiss

They have: 9 posts

Joined: Mar 2000

I love you guys/gals you have been a life saver for me on this project and these are the last 2 questions. I just can't seem to get this stuff to work.

Q #1

I have a set of radio buttons on my form and I want my visitors to be able to select more that one. I have tryed it half a dozen ways and can't get it to work. How do I do this?

Q #2

I would like to add a background color to my just my form, but because my form is not in its own table i quess it makes the entire screen and all that color. Can I put the whole form in a table (if so how? I tryied it wouldn't work) Or something or how do I do this?

Thank you for you patience with me.
William
---------------------------------------------

Do you know what time it is Pinky?
.....no brain what?
Time to take over the world!!
...*sonk*..how brain?
I am going to download the brains of the all these wonderfull people at this forum;
....Uh ha...then what brain?
Then Pinky I will the the greatest WebMaster of all!!!!!!!

AndyB's picture

They have: 344 posts

Joined: Aug 1999

Make each radio button on its own INPUT line, i.e. different questions .... or use checkboxes instead.

<table bgcolor="whatever_colour">
<tr>
<td>
your form
</td>
</tr>
</table>

[This message has been edited by AndyB (edited 23 March 2000).]

They have: 9 posts

Joined: Mar 2000

Each of my radio buttons do have their own INPUT line. This is what I have:
<H3>What Items would you be interested in?</H3>
<P><INPUT TYPE="radio" NAME="Items" VALUE="Glass Items">Glass Items
<INPUT TYPE="radio" NAME="Items" VALUE="Porcelain Items">Porcelain Items
<INPUT TYPE="radio" NAME="Items" VALUE="Brass Items">Brass Items<BR>
<INPUT TYPE="radio" NAME="Items" VALUE="Wood Items">Wood Items
<INPUT TYPE="radio" NAME="Items" VALUE="Religious Items">Religious Items
<INPUT TYPE="radio" NAME="Items" VALUE="Jewelry">Jewelry<BR>
<INPUT TYPE="radio" NAME="Items" VALUE="Home Decor">Home Decor
<INPUT TYPE="radio" NAME="Items" VALUE="Business Items">Business Items
<INPUT TYPE="radio" NAME="Items" VALUE="Other">Other<BR>

Do I need to add to the INPUT line?

quote:Originally posted by AndyB:
Make each radio button on its own INPUT line, i.e. different questions .... or use checkboxes instead.

[This message has been edited by AndyB (edited 23 March 2000).]

AndyB's picture

They have: 344 posts

Joined: Aug 1999

Each INPUT needs to have a different NAME

input type=radio name=porcelain_items value=" "
input type=radio name=brass_items value=" "

etc, etc.

What would have happened with your version is that as each radio button was clicked, the value associated with the variable NAMEd 'items' would be over-written

BTW - it's a lot easier to keep a single thread alive here than starting a new one every few questions

[This message has been edited by AndyB (edited 24 March 2000).]

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

But you shouldn't do that as it breaks the user expectation and the intended function of a radio button!

A radio button should be one of a bunch of choices. If you want multiple items in a bunch of choices, use the checkbox because that is what it is for.

A group of radio buttons SHOULD have the same name and different values, whereas a group of checkboxes should have different names.

hth,

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

Suzanne is right. Do not you a radio button for each of the items -- use checkboxes or group the items into categories and then use radio buttons.

radio name='wood' value='1'>Ash
radio name='wood' value='2'>Pine
etc.

I realize the above category doesn't fit your needs, but perhaps you need to rethink your eCommerce site so that you can use categories. (I presume that's what you're creating.) It will save time later when the site grows and begin adding new items.

-------------
And what will we do tomorrow, Brain?
What we do everyday, Pinky.
Take over the world!!!

Vinny

------------------
GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.