douxu3732 2014-05-23 16:55
浏览 24
已采纳

php标签不起作用。 php标签<php和<?有什么区别? [关闭]

First code is fine but textfield give back all php tag

<td><?php print($code_verification);?>
    <input type="text" name="packaging_code" id="packaging_code" value="<?=$code_verification?>" />
  • 写回答

2条回答 默认 最新

  • douqi1931 2014-05-23 16:58
    关注

    Change:

    value="<?=$code_verification?>"
    

    to:

    value="<?php echo $code_verification; ?>"
    

    The first line would work if your server had short_open_tags enabled.

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

报告相同问题?