这是我当前的代码:
<?php
for ( $i = 1; $i <= 9; $i++ ) {
?>
<form action="kill_threads.php" method="POST" >
<label>
<?php echo "<br/><br/>Thread ".$i;?>
<input type="submit" name = " <?php echo "thread".$i;} ?> " />
</label>
<input type="submit" name="test" />
</form>
<?php
for ( $i = 1; $i <= 9; $i++ ) {
$thread_name = "thread" . $i;
if ( isset( $_POST[thread_name] ) ) echo "im a killed thread now";
}
?>
如果我单击它们,我的按钮将不起作用,因为我知道我做错了什么。请帮助,在此先感谢。