Hi
Problem:
I have two checkboxes on my page. On first load both is deselected.
I then check one and as soon as I start my session both values gets turned on.
Can somebody please shed some light?
javascript checkbox manipulation:
I've also tried javascript for the onclick method of the checkboxes:
setting the other checkboxe's checked property to false and calling the onclick of the other checkbox
just setting the other checkboxe's checked value to false
just calling the other checkboxe's onclick method
setting the values to false/ 0
php checkbox manipulation:
I've tried setting the checked values with variables as soon as the a checkbox is selected.
My script is structured in the following way:
<?php
.
.
.
if ( $runquery == "yes" ) {
.
.
.
//here report1 = on and report2 is empty
//start new session if first set of data
if ( $startcount == 0 ) {
//destroy previous session if exists
if ( strlen(session_id()) > 0 ) {
session_destroy();
}
session_start();
}
//here report1=on and report2=on
.
.
.
}//end-if runquery is yes
.
.
.
?>
.
.
.
<form ...>
<input type="Checkbox" name="report1"> XXX
<input type="Checkbox" name="report2"> YYY
<input type="submit" value="Run" onclick=" document.theform.runquery.value='yes';">
</form>
.
.
.