动态添加的radio如何向php传值
动态添加的radio怎么向php传值
<table cellspacing="5" cellpadding="3" >
<?php
$id=$_SESSION['user_id'];
$sql="select *from user_order where user_id='$id'";
$res=mysql_query($sql);
$row=mysql_num_rows($res);
if($row){
while($row2=mysql_fetch_array($res)){
$MID=$row2['ou_id'];
$_SESSION['mid']=$MID;
$city = $row2['ou_place'];
$strict = $row2['ou_xiangxi'];
$Name = $row2['ou_name'];
$Tel = $row2['ou_phone'];
echo "<tr style='width: auto'>
<td><input type='radio' name='adress' > </td>
<td style='width: auto'>{$Name}</td>
<td style='width: auto'>{$city}{$strict} {$Tel}</td>
<td style='width: 10%'></td>
<td><a href='../php/updatead.php?orderId={$MID}'><input type='button' name='update' value='修改' class='update'/></a> </td>
<td><a href='../php/del.php?orderId={$MID}'><input type='button' name='delete' value='删除' class='delete' /> </a> </td>
</tr>";
}
<table cellspacing="5" cellpadding="3" >
<?php
$id=$_SESSION['user_id'];
$sql="select *from user_order where user_id='$id'";
$res=mysql_query($sql);
$row=mysql_num_rows($res);
if($row){
while($row2=mysql_fetch_array($res)){
$MID=$row2['ou_id'];
$_SESSION['mid']=$MID;
$city = $row2['ou_place'];
$strict = $row2['ou_xiangxi'];
$Name = $row2['ou_name'];
$Tel = $row2['ou_phone'];
echo "<tr style='width: auto'>
<td><input type='radio' name='adress' > </td>
<td style='width: auto'>{$Name}</td>
<td style='width: auto'>{$city}{$strict} {$Tel}</td>
<td style='width: 10%'></td>
<td><a href='../php/updatead.php?orderId={$MID}'><input type='button' name='update' value='修改' class='update'/></a> </td>
<td><a href='../php/del.php?orderId={$MID}'><input type='button' name='delete' value='删除' class='delete' /> </a> </td>
</tr>";
}