473,395 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to Select Checkbox group based of database value

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
1 1774
jhardman
3,406 Expert 2GB
How much ASP do you know? Do you know how to connect to a database?

Jared
Nov 23 '07 #2

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

Similar topics

4
by: Michael Champagne | last post by:
We have an application to where you can select/deselect all checkboxes in a checkbox array by clicking a 'master' checkbox at the top of the screen. This seems to work fine unless there is only...
3
by: Adam Toline | last post by:
In reference to the following: http://www.bellecose.com/form.htm At the top of each column there is a box for "All". When one is checked I need to check all of (and only) those boxes...
2
by: Tomas Vera | last post by:
Hello All, I'm having problems creating a page with dynamic checkboxes in a WebApp. In my app, I need to query a database, then (based on results) add checkboxes to my form and set their...
2
by: bigrich | last post by:
I'm a beginner to javascript and need help. I've searched the forum but can't piece the answer together. I need to be able to uncheck and disable a checkbox based on the option selected in a...
5
by: FP | last post by:
I have a list of results. When the user clicks a checkbox I need it to update the database but I don't want it to reload the current page. Currently I have the following; - a checkbox in a form...
6
by: Daz | last post by:
Hi everyone. Firstly, I apologise if this i not what you would call a PHP problem. I get quite confused as to what lives in which realm, so if this shouldn't be posted here, please suggest where...
22
by: MP | last post by:
vb6,ado,mdb,win2k i pass the sql string to the .Execute method on the open connection to Table_Name(const) db table fwiw (the connection opened via class wrapper:) msConnString = "Data Source="...
0
by: New2ASP | last post by:
Thanks everyone in advance for your help. I am fairly new to web development but an experienced window-based developer. Here's the structure of my Gridview Column 1 : Checkbox with SelectAll...
4
by: The.Daryl.Lu | last post by:
Hi, Have a bit of a problem... I've created a form in Access and will use the form for a user to query a table based on the selected fields. The problem lies in that I was using checkboxes for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.