|
| |
|
|
climberman
Posts: 103 Joined: 8/1/2007 Status: offline
|
Check Box - 12/23/2007 20:49:09
When a person puts a check in the box can you have the answer be something other then Y or N in the data base. It seems like I have changed that before but I can't remember now how I did it. Thanks
|
|
|
|
swoosh
Posts: 1437 Joined: 5/18/2002 From: Beaver Falls, PA Status: offline
|
RE: Check Box - 12/23/2007 22:10:49
Wouldn't just changing the "value" of the checkbox do it?
_____________________________
Swoooosh Just Do It!
|
|
|
|
climberman
Posts: 103 Joined: 8/1/2007 Status: offline
|
RE: Check Box - 12/23/2007 22:45:15
That is what I thought so maybe I am doing something wrong. I changed the value but it doesn't work
|
|
|
|
rdouglass
Posts: 9229 From: Biddeford, ME USA Status: offline
|
RE: Check Box - 12/24/2007 2:27:25
Checkboxes work in the sense that there is either a value or there is not; there cannot be 2 different values directly from 1 checkbox. <input type="checkbox" name="mycheckbox" value="yes"> When you Request.form("mycheckbox"), you will either get "yes" or Null . If you want a "no" out of it, you need to do something like: <%IF trim(Request.form("mycheckbox") & "") = "yes" Then myValue = "yes" ELSE myValue = "no" End IF%> Hope it helps.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
climberman
Posts: 103 Joined: 8/1/2007 Status: offline
|
RE: Check Box - 12/24/2007 9:39:32
Thanks everyone I will work on it tonight.
|
|
|
|
climberman
Posts: 103 Joined: 8/1/2007 Status: offline
|
RE: Check Box - 12/24/2007 11:24:24
Here is the code I have and all I get is a Y or an N <input name="WillingToRelocate" type="checkbox" value=yes>
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|