我該怎麼去做這件事?PHP裏面的PHP裏面的PHP
<?php
if (isset ($_SESSION['ID'])) {
echo "
<form action = 'updateacct.php' method = 'POST'>
Email:
<input type = 'text' name = 'eml' value = '" . echo $_SESSION['ID'] . "' placeholder = 'Email' size = '30' required/>
</form>
?>
我試圖從會話拉變種,並把它形式值內,無法弄清楚如何做到這一點。
我建議你開始閱讀你想要的工具文檔使用:http://php.net/manual/en/language.types.string.php – arkascha
首先,你有一個明顯的語法錯誤你發佈的內容;編輯:實際上兩個,可能三個。 –
@ Fred-ii-好的,謝謝你的幫助 – Baker2795