Now a question might come to mind... What if I want to ask 3 different questions about the same group of guys?? How, Mr Smartypants am I going to do that!

Well, just settle down and I'll show you.

Which of these guys are your friends? Ed Holleran Rick Weinberg Tom Studd Burgermeister Meisterburger | Which of these guys would you lend money to? Ed Holleran Rick Weinberg Tom Studd Burgermeister Meisterburger | Which of these guys would you trust with your sister? Ed Holleran Rick Weinberg Tom Studd Burgermeister Meisterburger

It's true that in each form there should never be duplicate `NAME`s. So, maybe we could use a different name for each question. (When I say never, I don't mean that your computer will blow up... at most it might confuse the browser or the form handler. At the very least it will confuse the poor sap that has to make sense of the form data.)

What follows is the html for these 3 questions. The `<TABLE>` tags are in blue. They are for appearance only, they don't affect how the form works. If you need to brush up on your `<TABLE>` tags, then stumble on over to Table Tutor.

    <FORM>
    <TABLE BORDER=1><TR><TD WIDTH=33%>
    Which of these guys are your friends?
    <BR><INPUT TYPE="checkbox" NAME="Friend?..Ed"   VALUE="YES">Ed Holleran
    <BR><INPUT TYPE="checkbox" NAME="Friend?..Rick" VALUE="YES">Rick Weinberg
    <BR><INPUT TYPE="checkbox" NAME="Friend?..Tom"  VALUE="YES">Tom Studd
    <BR><INPUT TYPE="checkbox" NAME="Friend?..BM"   VALUE="YES">Burgermeister Meisterburger
    </TD><TD WIDTH=33%>
    Which of these guys would you lend money to?
    <BR><INPUT TYPE="checkbox" NAME="Lend money?..Ed"   VALUE="YES">Ed Holleran
    <BR><INPUT TYPE="checkbox" NAME="Lend money?..Rick" VALUE="YES">Rick Weinberg
    <BR><INPUT TYPE="checkbox" NAME="Lend money?..Tom"  VALUE="YES">Tom Studd
    <BR><INPUT TYPE="checkbox" NAME="Lend money?..BM"   VALUE="YES">Burgermeister Meisterburger
    </TD><TD WIDTH=34%>
    Which of these guys would you trust with your sister?
    <BR><INPUT TYPE="checkbox" NAME="Date sister?..Ed"   VALUE="YES">Ed Holleran
    <BR><INPUT TYPE="checkbox" NAME="Date sister?..Rick" VALUE="YES">Rick Weinberg
    <BR><INPUT TYPE="checkbox" NAME="Date sister?..Tom"  VALUE="YES">Tom Studd
    <BR><INPUT TYPE="checkbox" NAME="Date sister?..BM"   VALUE="YES">Burgermeister Meisterburger
    </TD></TR></TABLE>
    </FORM>

Let's suppose the user checked the following boxes...

Which of these guys are your friends? Ed Holleran Rick Weinberg Tom Studd Burgermeister Meisterburger | Which of these guys would you lend money to? Ed Holleran Rick Weinberg Tom Studd Burgermeister Meisterburger | Which of these guys would you trust with your sister? Ed Holleran Rick Weinberg Tom Studd Burgermeister Meisterburger

...doing that would send you the following name/value pairs.

    Friend?..Ed=YES
    Friend?..Rick=YES
    Friend?..Tom=YES
    Lend money?...Tom=YES
    Lend money?...BM=YES
    Date sister?...Ed=YES
    Date sister?...Tom=YES
    Date sister?...BM=YES

Ain't it cool?

<< BACK NEXT >>