Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2006, 10:53 AM
Friend of Wrox
 
Join Date: May 2005
Location: , , .
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default checkbox update

Hi,
I have a form that has some checkboxes named "interests" like this:
<input type=checkbox name=interests value="sport">
<input type=checkbox name=interests value="Internet">
<input type=checkbox name=interests value="Books">

I add them to a field called "interests" in the database
and as you know they will be added with a comma separated(if user checks all thr boxes)like this sports,books,internet

Now I have a form that gets the values of all fields from the db
I get the values of all fields but how Can I update the interest field
if there was just one value I used this code:
<input type=checkbox name=interests value="<%=rs("interests")%>">
But now I have more than 1 checkbox
I need the code please!
 
Old April 18th, 2006, 06:41 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Pleaae dont cross post. you will find your solution at:

http://p2p.wrox.com/topic.asp?TOPIC_ID=43070

Wind is your friend
Matt




Similar Threads
Thread Thread Starter Forum Replies Last Post
update database with checkbox mike7510uk ASP.NET 2.0 Basics 1 December 12th, 2006 07:10 AM
update records in the database by checkbox Sakina Classic ASP Basics 2 September 9th, 2006 11:38 PM
checkbox update keyvanjan Classic ASP Basics 9 April 24th, 2006 10:10 PM
Gridview Checkbox Update not updating using Access AUhawk ASP.NET 2.0 Basics 0 October 27th, 2005 01:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.