<?php
foreach($_POST as $key => $value){
echo $value;
}
?>
<html>
<head>
<script type="text/javascript">
function add(){
i = document.getElementById('link').value;
eval("document.form1." + i + ".value='1'")
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="Untitled-3.php">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="hidden" name="s1" />
<a href="#" id="link" value="s1" onclick="add()">3</a></td>
<td><input type="hidden" name="s2" />
<a href="#" id="link" value="s2" onclick="add()">4</a></td>
<td><input type="hidden" name="s3" />
<a href="#" id="link" value="s3" onclick="add()">5</a></td>
<td><input type="hidden" name="s4" />
<a href="#" id="link" value="s4" onclick="add()">6</a></td>
</tr>
</table>
<input type="submit" name="button" id="button" value="Submit" />
</form>
</body>
</html>
|