試圖返回$出變量問題
$out = '';
$out .= '<form id="agp_upload_image_form" method="post" action="" enctype="multipart/form-data">';
$out .= wp_nonce_field('agp_upload_image_form', 'agp_upload_image_form_submitted');
$out .= $posttile = get_option('posttitle');
$out .= $postdiscription = get_option('postdiscription');
$out .= $postauthor = get_option('postauthor');
$out .= $postcategory= get_option('postcategory');
$out .= $uploadimage= get_option('uploadimage');
$out .= $posttitleenabledisables = get_option('posttitleenabledisables');
$out .= $postdiscriptionenabledisable = get_option('postdiscriptionenabledisable');
$out .= $postauthorenabledisable = get_option('postauthorenabledisable');
$out .= $postcategoryenabledisable = get_option('postcategoryenabledisable');
$out .= $uploadimageenabledisable = get_option('uploadimageenabledisable');
$out .= $posttaxonomies = get_option('posttaxonomies');
$out .= $enablecaptcha = get_option('captchaprivatekey');
if ($posttitleenabledisables == 'disable') { } else {
$out .= '<label id="labels" for="agp_image_caption">"'.if (isset($posttile[0])) { echo get_option('posttitle'); } else { echo 'Post Title'; } .'":</label><br/>';
$out .='<input type="text" id="agp_image_caption" name="agp_image_caption" value="$agp_image_caption ;"/><br/>';
}
但停留在這一點上給錯誤
$out .= '<label id="labels" for="agp_image_caption">"'.if (isset($posttile[0])) { echo get_option('posttitle'); } else { echo 'Post Title'; } .'":</label><br/>';
我想這回,但得到的錯誤,因爲我覺得變量不允許的if else
可以有人告訴如何解決這個問題
什麼是你看到的錯誤? – Pudge601
請在Dreamweaver中複製代碼,你會發現我的意思是 – Corlax
..你可以通過告訴我們錯誤信息是什麼來節省我們所有的時間(包括你自己)。 – Pudge601