你好,我有一點點問題,我在PHP4和Apache工作1.1PHP 4的值複選框不會顯示所有的PHP
<?php
$something="first second";
echo '<input type="checkbox" name="standard[]" value='.$something.'>first second<br>';
?>
結果:
first
如果
<?php
echo '<input type="checkbox" name="standard[]" value="first second">first second<br>';
?>
結果:
first second
我想我的代碼就像第一個,但結果是第二個,怎麼樣?感謝
它們的輸出你好檢查答案,迴應 –
wkwkk ,,,無論如何感謝... 我發現問題... '。$ somethin G。'被替換爲「'。$ something。'」 至所有輸入值 謝謝 – user3372171
您沒有接受ans但 –