use radio button instead of checkbox, that's what it's for.
Then just use the "Selected" attribute to start off with one preselected
thus ensuring that there will always be one checked.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site:
http://www.Darkfalz.com
Blog:
http://blog.Darkfalz.com
"Miguel Orrego" <miguel@stressedmonkey.net-nospam> wrote in message
news:40fd03f9$0$6445$ed9e5944@reading.news.pipex.n et...[color=blue]
> Hi,
>
> I have a form that is created dynamically from a recordset, this creates a
> line for each record together with 2 checkboxes, Yes & No so the source
> output would be something like this:
>
> <p>Please indicate whether you still use each piece of software detailed
> below:</p>
> <form name="apps" method="POST" action="MyAction.asp">
> <table width="600" border="1" cellspacing="0" cellpadding="5">
> <tr bgcolor="#9999FF">
> <td><font color="#FFFFFF"><strong> Software</strong></font></td>
> <td><font color="#FFFFFF"><strong>Required?</strong></font></td>
> </tr>
>
> <tr>
> <td>Adobe Photoshop 7.0 7.0</td>
> <td><input type="checkbox" name="Yes" value="Adobe Photoshop 7.0[/color]
7.0">[color=blue]
> Yes
> <input type="checkbox" name="No" value="Adobe Photoshop 7.0 7.0">
> No </td>
> </tr>
>
> <tr>
> <td>Citrix ICA Client</td>
> <td><input type="checkbox" name="Yes" value="Citrix ICA Client">
> Yes
> <input type="checkbox" name="No" value="Citrix ICA Client">
> No </td>
> </tr>
>
> <tr>
> <td>Macromedia Dreamweaver MX 6.0</td>
> <td><input type="checkbox" name="Yes" value="Macromedia Dreamweaver[/color]
MX[color=blue]
> 6.0">
> Yes
> <input type="checkbox" name="No" value="Macromedia Dreamweaver MX
> 6.0">
> No </td>
> </tr>
> </table>
> <p>
> <input type="submit" name="Submit" value="Submit">
> </form>
>
> And so on......
>
> I want to ensure that either Yes or No has been checked for each line[/color]
before[color=blue]
> the form can be submitted, can this be done in asp? The
> amount of lines in the form will vary.
>
> Thanks.
>
>[/color]