<html>
<head>
<script language="JavaScript">
var bgcolorSelected = "#cc3333";
var bgcolorNotSelected = "#ffffff";
function HighLightTR_a(el){
if (document.myform.s23.checked == true) {
el.bgColor=bgcolorSelected;
} else {
el.bgColor=bgcolorNotSelected;
}
}
</script>
</head>
<body>
<form name="myform" action="" method="POST">
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#F2F2F2" >
<tr align="center" bgcolor="#FFFFFF">
<td height="50" width="50" onClick="HighLightTR_x(this);" <?php echo $c[23];?>>
<input type="checkbox" name="s23" value="x" <?php echo $s[23];?>><br>X
<img src="images/upuan.jpg" width="50" height="50" name="s22">
</td>
</tr>
</table>
<input type="submit" name="submit" value="Reserve">
</form>
</body>
</html>
i have a table here with a checkbox in it with a picture.
what i want is when a user click the image, the table row will change color and when i click the reserve button, the value of the image will display in the page..
i've tried it but nothing happens..
please help me...
tnx..