form表单

<form name="toupiao" method="post" action="toupiao_ok.php" >

 <table border="0" align="center" cellpadding="0"  cellspacing="0" width="1004" >
  <tr align="center">
  <td>主题:<?php echo $arr['vote_title']; ?>  </td>
  <input type="hidden" name="title" value="<?php echo $arr['vote_title'];?>" />//设置成这种类型,是因为需要在表单提交的时候用到$_POST[title]
  <td>票数:</td>
  </tr>
  <?php
   $sel=$db->select("ve_xvote","where vote_id='".$_GET['id']."'");  //重复写的原因是如果不重写就会从第二行数据开始取值
   
   while($ar=$db->arr_ay($sel)){
  ?>
  <tr align="center">
   <label><blockquote><td>
   <p>
   <input type="radio" name="radios" value="<?php echo $ar['id']?>">
   <?php echo $ar['xvote_title'] ?></p>
   </td>
   </blockquote>
   </label>
   <td>
   <p><?php echo $ar['Xvote_jie'];?></p>
   </td>
  </tr>
  <?php
  }
  ?>
  <tr align="center">
  <td>
  <input type="submit" name="submit" value="提交">
  </td>
  <tr>
 </table>
</form>

原文地址:https://www.cnblogs.com/phpspring/p/2855940.html