navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Check Box

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Dreamweaver Help >> Check Box
Page: [1]
 
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!


(in reply to climberman)
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

(in reply to swoosh)
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.

(in reply to climberman)
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.

(in reply to rdouglass)
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>

(in reply to climberman)
Page:   [1]

All Forums >> Web Development >> Dreamweaver Help >> Check Box
Page: [1]
Jump to: 1





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