venus_me11 0 Newbie Poster

i dont know how to get the value in this table..

i have there a table with an image..

if a user click on one of it, and click reserve the letter of that table (ex. S) must be printed...
please help...

<?php
if ($_POST) {
		if ($_POST['submit'] == "Reserve") {
				$a1=$_POST['s1'];

				if ($a1!="") {
					$urlpost1 .= "A,";
				}
?>

<html>
<head>

<script language="JavaScript">
   var bgcolorSelected = "#cc3333";
	   function HighLightTR_x(el){
   		if(document.getElementById(el).style.background == '')
   		{
   			document.getElementById(el).style.background = bgcolorSelected;
		}
  		else
		{
  		      document.getElementById(el).style.background = '';
  		}
	}
	</script>
</head>
<body>

<form name="myform" action="" method="POST">

<table cellspacing="2" cellpadding="4" bgcolor="#736F6E" width="520" >

<tr align="center"  bgcolor="#FFFFFF">
	<td width="81" height="50" id="td_id1" 
		onclick="if(this.style.background==''){this.style.background='#cc3333';} else { this.style.background=''; }" <?php echo $c[18];?>>
		<img src="images/upuan bg.png" width="70" height="55" name="s18"><br>
		<input type="checkbox" name="s18" value="s" <?php echo $s[18];?>>
		<br>S
		</td>
		
		<td width="45">&nbsp;</td>
		
		<td width="41" height="50" id="td_id1" 
		onclick="if(this.style.background==''){this.style.background='#cc3333';} else { this.style.background=''; }" <?php echo $c[17];?>>
		<img src="images/upuan bg.png" id="image_td_id1" width="70" height="55">
		<input type="hidden" name="s17" value="r" <?php echo $s[17];?>>
		<br>R</td>
		
		<td width="58" height="50" id="td_id1" 
		onclick="if(this.style.background==''){this.style.background='#cc3333';} else { this.style.background=''; }">
		<img src="images/upuan bg.png" id="image_td_id1" width="70" height="55">
		<br>Q</td>
	</tr>
	

</table>

</body>
	</div>
	<br><br>
	<center>
	<input type="submit" name="submit" value="Reserve">
	<input type="submit" name="cancel" value="Cancel">

	</center>
</form>
	</center>      


</div> <!-- end of content wrapper -->
</div>
<?php include("side/footer.php"); ?>
</body>
</html>