douba4824 2011-05-05 08:22
浏览 5
已采纳

如果没有定义变量,这个php形式如何工作?

how does this php form work without defining $SCRIPT_NAME variable ?

<form action="<?php echo $SCRIPT_NAME ?>" method="post">
  • 写回答

3条回答 默认 最新

  • duanchao5258 2011-05-05 08:29
    关注

    This code relies on the ancient, deprecated and horrible register_globals feature which creates global variables from all the $_REQUEST, $_COOKIE and $_SERVER fields.

    I'd highly suggest you to get rid of this code and disable the register_globals setting.

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

报告相同问题?