First of all, let me say I am new to this forum.
It has been a while since I attempted any programming. I have used, HTML, vbscript, and javascript in the past.

Here is my problem.

I am wanting to make a web page with pictures, under the picture will be a checkbox. At the bottom of the page there will be a print button. The pictures on the site(which is an intranet) actually represent excel(.xls) files. If a checkbox is checked, when the print button is pushed it will print that file. I want to keep it simple.

Basically, I am wanting the print button to call a function like:
<input type="checkbox" name="C1" value="ON">Check to
print</p> //checkbox HTML
<input type="button" value="Print" name="btnPrint" onClick="printfiles()">

the function

sub printfiles()
var box1= val(chkValue1) //value1 being a boolean(true/false) gotten
from the HTML page, etc.
if box1 = True then // if box is check then print Excel document.
if box2 = true then

I am probably making it to complicated, just can't remember how to do this.I could probably do this in rather simply, but as stated above it is on a intranet web page.

is this possible?If so, can I get an example.

Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.