我有这样的输入表单:
<input type="checkbox" name="vehicle" value="Bike" />
我想在这个变量中打印它:
$return .= '<div class="flink">'.$checkbox.'</div>';
或者我可以将它分配给任何其他变量吗?
我该怎么做?我试着把:
$checkbox.= '<input type="checkbox" name="vehicle" value="Bike" />';
    我有这样的输入表单:
<input type="checkbox" name="vehicle" value="Bike" />
我想在这个变量中打印它:
$return .= '<div class="flink">'.$checkbox.'</div>';
或者我可以将它分配给任何其他变量吗?
我该怎么做?我试着把:
$checkbox.= '<input type="checkbox" name="vehicle" value="Bike" />';
    只需添加:
$return = '<div class="flink">'.$checkbox.'</div>';
echo $return; // Somewhere on the page.
看起来你定义它很好,你可能没有在页面上呼应它。
         <?php
                $q="select * from stores";
                $res=mysql_query($q);
                $StoreOPtion = '<option value="">--select--</option>';
                while($rs=mysql_fetch_object($res))
                 { 
                 $StoreOPtion .= '<option   value="'.$rs->StoreId.'||StoreName:'.$rs->StoreName.'..  Street:'.$rs->StoreStreet.'..Phone:'.$rs->StorePhone.'..Email:'.$rs->StoreEmail.'..Area:'.$rs->StoreArea.'..Pin:'.$rs->StorePincode.'">'.$rs->StoreName.'</option>';
                } 
                ?>
        <select name="StoreName" type="text" id="StoreName"  onchange="getStoreAdd()"/>
       <?php echo $StoreOPtion; ?>
         </select>
我在这里使用下拉框。ypu sehe这个例子并使用它