单击按钮时如何从 div 发布值。
我试图将操作留空,以便在按下按钮时刷新站点。但价值不来?我只希望 TransID 在按下按钮时发布。
<form action=" ">
<div class="white-box">
<div class="row-fluid">
<div class="span3">TransID</div>
<div class="span3">Medlemsnummer</div>
<div class="span4">Beskrivelse</div>
<div class="span2">Indløs</div>
</div>
<?php
foreach($Test as $key){
?>
<div class="well">
<div class="row-fluid">
<div class="span3" id="TransNR" >#<?= $key['TransID']; ?></div>
<div class="span3"><?= $key['member_id']; ?></div>
<div class="span4"><?= $key['title']; ?></div>
<?php
$indløst = isset($key['indløst'])?($key['indløst']) :"";
?>
<?php
if($indløst)
{
?>
<div class="span2" ><?= date('d-m-y H:i:s', $indløst) ?></div>
<?php
}
else
{
?>
<input class="span2" type="submit" value="Ja ">
<?php }
?>
</div>
</div>
<?php
}
?>
</div><!-- / white-box -->
</form>