[請益] 表單字串顯示問題

看板Web_Design作者 (alwAys bE my bABy)時間19年前 (2006/11/27 16:14), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
for example $st1="test string one"; $st2="string two test"; echo "<br><input type=textfield size=60 value=".$st1.$st2."></input>"; 則textfield裡只會顯示出 test, 空白後的字串都會不見, 對於如 $st1, $st2有包含空白的字串要能在textfield顯示, 是不是要自己去判斷 處理空白才行, 還是有其他方法, 謝謝. ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.117.176.53 ※ 編輯: ikee 來自: 140.117.176.53 (11/27 16:14)

11/27 16:49, , 1F
value='".$st1.$st2."'></input>";
11/27 16:49, 1F

11/27 17:05, , 2F
謝囉~
11/27 17:05, 2F
文章代碼(AID): #15QfvJo1 (Web_Design)