我有一個插入查詢,其中要插入的數據來自textareas。插入之後,我想在其他textarea中顯示此內容。我有雙引號問題...我不知道如何管理它,因爲輸出textarea不顯示包含「」的文本!如何在PHP中顯示雙引號「」?
我試過htmlentitles和其他函數,但什麼也沒有發生。你能幫我麼?非常感謝。
這是輸入代碼:
//database connection
//taking datas from the text areas input in the form
$title = trim(stripslashes($_POST['title']));
$title = mysql_real_escape_string($title);
這是輸出代碼:
//select query
$title=mysql_result($results, $i,"T_TITLE");
//and with javascript I want show it in a textarea that have name="EDITtitle"
document.EDITform.EDITtitle.value="<?php echo $title; ?>";
如果輸入我有 - 以 「Code N1」 問題的部位,我怎麼能顯示文字與「 「 , 沒有什麼問題?
'document.EDITform.EDITtitle.value ='<?php echo $ title; ?>';' – Sonny 2014-10-06 13:05:15