textbox = php variable?

房东的猫 提交于 2019-12-13 11:03:44

问题


I want to get value from php variable to review it in textbox

what I have to write in "value":

<input type="text" name="name3" size="25" maxlength="50" value=""> name:

回答1:


<input type="text" 
       name="name3" 
       size="25" 
       maxlength="50" 
       value="<?php echo htmlspecialchars($variable); ?>">



回答2:


<input type="text" name="name3" size="25" maxlength="50" value="<?php echo $variable; ?>">


来源:https://stackoverflow.com/questions/3435774/textbox-php-variable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!