HTML input form box not populating PHP value after first space

前端 未结 2 1843
面向向阳花
面向向阳花 2020-12-22 00:59

I have a simple HTML input box within an update form that is populated with the current PHP variable value, which is assigned from a MySQL query. If I enter in any value and

相关标签:
2条回答
  • 2020-12-22 01:44

    This is because you are not using quotes in your value attribute. Please add them like this:

    <input name="note" size="100" value="<? echo $note; ?>"></input>     
    
    0 讨论(0)
  • 2020-12-22 01:47

    It should be:

    <input name="note" size="100" value="<? echo $note; ?>"></input>          
    
    0 讨论(0)
提交回复
热议问题