How to set HTML value attribute (with spaces)

后端 未结 5 982
日久生厌
日久生厌 2020-11-27 08:08

When I use PHP to set the value of a HTML form input element, it works fine provided I don\'t have any spaces in the data.



        
5条回答
  •  遥遥无期
    2020-11-27 08:25

     />
    

    You have to wrap the variable result with quotes, so that the browser can know what's the content of the input.

提交回复
热议问题