duanpeng1532 2014-01-31 22:52
浏览 153
已采纳

php如何改变标签的html值?

In asp.net, I can have server controls like Textbox and etc.

Does PHP have web server control like asp.net?

I want to change a label html value.

  • 写回答

2条回答 默认 最新

  • doutanggun9816 2014-01-31 23:04
    关注

    Since there was no provided example you wanted help with here is a small snippet of how it would work.

     $user = "StackO";    
     <input type="text" placeholder="Example" name="custom" value="<?php echo $user; ?>">
    

    This would put StackO as the value of the textbox. The value is the text of the textbox it's self.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?