Only first word In a multi word variable is being displayed

前端 未结 3 496
遇见更好的自我
遇见更好的自我 2020-12-06 21:45

In my form I have the following values that are based on a standard PHP/MySql query.

echo \"\\n
        Locati         


        
3条回答
  •  粉色の甜心
    2020-12-06 22:28

    You need to put your single quotes around it to make it a valid attribute. The HTML is being created as value=North Campus which gets interpreted as value="North" and some Campus attribute that has no value. Use value='$location'.

提交回复
热议问题