CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How do I obtain the value of a check box?

Print topic Send  topic

Author Message
Brian Bermingham
Posted: 03/02/2002, 9:47 AM

I am using ASP eith templates and an Access 2000 db

I am using the Custom Action of a record form to run some SQL, the record form has a check box which is not populated from the db.
The idea is if the check box is checked then run one SQL if not run a different SQL. I don't seem to be able to find a way of geting the value of the check box.
I have Obtained the generated code which shows the following in the 'Load all form fields into variables' section.
fldfAll = getCheckBoxValue(GetParam("fAll"), "1", "0", "Text")

I have tried the following without success
if fldAll = "1" then....
if getparam("fAll") = "1" then....
if getCheckBoxValue(GetParam("fAll"), "1", "0", "Text") = "1" then....

I'm sure it's some thing obvious, but I just can't see why the above should not work!

Robert
Posted: 03/03/2002, 10:52 PM

the checkbox value is 'on' if checked
Brian Bermingham
Posted: 03/04/2002, 1:20 AM

Thanks Robert

That was it. I knew it must have been something simple I was missing.
I had looked through the CC help, these discussions, the tips and articles and the 'Users Guide' without finding any reference. Thanks again.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.