Using a PHP variable in a text input value = statement

前端 未结 6 1371
走了就别回头了
走了就别回头了 2020-12-15 00:11

I retrieve three pieces of information from the database, one integer, one string, and one date.

I echo them out to verify the variables contain the data.

Wh

6条回答
  •  时光说笑
    2020-12-15 00:46

    Solution

    You are missing an echo. Each time that you want to show the value of a variable to HTML you need to echo it.

    
    

    Note: Depending on the value, your echo is the function you use to escape it like htmlspecialchars.

提交回复
热议问题