-2
這是我從中得到語法錯誤的代碼。PHP - Post語法錯誤
<?php
if ($_POST['prestiti']){
echo "<option value=".$_POST['prestiti']."
selected='selected'>.$_POST['prestiti']</option>";}
else{
echo "<option value='No' selected='selected'>No</option>";}
?>
錯誤 - >;
unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or
T_NUM_STRING in line
提前謝謝!
<?PHP的 \t \t \t \t如果($ _POST [ 'prestiti']){ \t \t \t \t \t回聲 「<選項值=」。$ _ POST [ 'prestiti']。」選擇\t = '選擇'> $ _ POST [ 'prestiti']「;} \t \t \t \t \t否則{ \t \t \t \t \t echo「」;} \t \t?> –