有人可以帮我写出正确的,我正在努力。有人可以向我解释如何以最好的方式结合单引号和双引号? 我在网上发布Double vs SIngle Quotes issue
value = "<?php echo $client['name_'.$key];?>"
我的整个代码是
<?php
foreach($this->config->item('languages') as $key=>$value)
{
echo '<div id="edit-fragment-'.$key.'">
<table class="form_horizontal" width="100%">
<tr>
<td class="field">'.lang('polls_txt_title').'</td>
<td class="value"><input type="text" name="client_'.$key.'" value = "<?php echo $client['name_'.$key];?>"; /></td>
</tr>
<tr>
<td class="field">'.lang('polls_txt_vote').'</td>
<td class="value"><input type="text" name="polls_'.$key.'_vote" value="'.$this->mConfig->item('polls_'.$key.'_vote').'" /></td>
</tr>
</table>
</div>';
}
?>
抱歉,这是输入标签 – 2014-10-18 10:28:27
现在,在HTML值也可能被罚款 – Gautam3164 2014-10-18 10:29:34
语法错误忘了关分号$客户端[“名_” $键。*; * – 2014-10-18 10:31:18