By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,931 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

How to Select Checkbox group based of database value

P: 8
I want to select CheckBox based on data retrieved from mysql database table.

Could anyone show me the simple way of doing it.

Data store in table under colum "sectionOfInterest" is shown below
------------------------------------------------------------------------
"Commercial Security Middle East, Homeland Security and Policing Middle East,Safety & Health Middle East, "
-----------------------------------------------------------------------------------



[HTML]

<table border="0" cellpadding="0" cellspacing="1" style="border-collapse: collapse" width="86%">


<tr>
<td height="20" colspan="3">Please indicate which section of
exhibition you are most interested in?</td>
</tr>


<tr>
<td width="94" height="20">&nbsp;</td>
<td height="20">
<input type="checkbox" name="chkSectionInterested[]" value="Commercial Security Middle East" style="font-family: Arial; font-size: 10pt; border: 0px solid #C0C0C0; padding: 0">Commercial
Security Middle East</td>
<td width="4" height="20">&nbsp;</td>
</tr>
<tr>
<td width="94" height="20">&nbsp;</td>
<td height="20">
<input type="checkbox" name="chkSectionInterested[]" value="Fire and Rescue Middle East" style="font-family: Arial; font-size: 10pt; border: 0px solid #C0C0C0; padding: 0">Fire
and Rescue Middle East</td>
<td width="4" height="20">&nbsp;</td>
</tr>
<tr>
<td width="94" height="20">&nbsp;</td>
<td height="20">
<input type="checkbox" name="chkSectionInterested[]" value="Safety &amp; Health Middle East" style="font-family: Arial; font-size: 10pt; border: 0px solid #C0C0C0; padding: 0">Safety
&amp; Health Middle East</td>
<td width="4" height="20">&nbsp;</td>
</tr>
<tr>
<td width="94" height="10"></td>
<td height="10">
<input type="checkbox" name="chkSectionInterested[]" value="Homeland Security and Policing Middle East" style="font-family: Arial; font-size: 10pt; border: 0px solid #C0C0C0; padding: 0">Homeland
Security and Policing Middle East</td>
<td width="4" height="10"></td>
</tr>
<tr>
<td width="94" height="10"></td>
<td height="10">
<input type="checkbox" name="chkSectionInterested[]" value="Conference" style="font-family: Arial; font-size: 10pt; border: 0px solid #C0C0C0; padding: 0">Conference</td>
<td width="4" height="10"></td>
</tr>
</table>

[/HTML]
Nov 21 '07 #1
Share this Question
Share on Google+
1 Reply


jhardman
Expert 2.5K+
P: 3,405
How much ASP do you know? Do you know how to connect to a database?

Jared
Nov 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.