Results 1 to 5 of 5
03-16-2003, 08:47 PM #1
HTML/VBSCRIPT checkbox help...please
This is my first post as an intro programming student. I am creating very elementary HTML pages right now and some VB script. Anyway, in my HTML i have a checkbox. in the vbscript subroutine when i go to check the value of the checkbox in an if statement the value of the checkbox is always "on." This happens whether the checkbox is checked or unchecked. Does anyone know how to make the value of the checkbox when it is unchecked "false" untill it is checked???
Gosh i hope this made sense....
Thanks in advance...PEter
03-17-2003, 10:02 AM #2
It's show and tell time. You show us your code and (someone here) will tell you a few hints. It may be something as simple as setting the variable to null at the beginning of the function/routine so that it doesn't carry its value over to the next iteration.
11-26-2003, 10:01 AM #3
ChecboxOriginally Posted by Pbalais
document.forms(0).box5.value = "on"
this is not what you need!
See the code below:
document.forms(0).box5.checked = True
Assuming box5 is the name you gave the checkbox, you need the checked property which will change as you check and uncheck the box.
03-08-2006, 08:43 AM #4
Re: HTML/VBSCRIPT checkbox help...please
Hello, I am new to this forum as well as to vbscript/html.Would like to learn how to code the following: Read a text file of PC inventory (done that), ask the users what they want to see, e.g., CPU, Disk Drive Space, Memory, etc., via CheckBoxes, then present them the info in html format and also email the output to them.
Any sample code?
03-13-2006, 03:20 PM #5
Re: HTML/VBSCRIPT checkbox help...pleaseOriginally Posted by samtheman
Also, you'll get a better response to a thread along the lines of "here's what I've got, how can I get it to work?" than a "can you do xxx for me?"