比如这样一个名单
<form method="POST" action="add.php" name="add">
  User Name: <input type="text" name="UserName" size="50"><br>     
  <input type="submit" value="OK" name="B1"></p>
</form>如果我在text框里填的值有单引号'就会报:
Forbidden
You don't have permission to access /crm/detail.php on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.如果没有单引号就一切正常,这是什么回事?

解决方案 »

  1.   

    应该是程序里的问题。
    你看下程序里接收到你输入的UserName后做的什么处理????
      

  2.   

    测试了一下,我把接收post的php改成最简单的html而没有任何处理,也会出一样的错误,看来似乎是主机的问题
      

  3.   

    You don't have permission to access /crm/detail.php on this server.
    ---------------应该是权限问题吧,permission 好像是禁止的意思
      

  4.   

    http://www.google.com.hk/search?gcx=w&client=aff-cs-360chromium&ie=UTF-8&q=%E8%9A%82%E8%9A%81%E5%AD%A6%E9%99%A2+php+%E5%8D%95%E5%BC%95%E5%8F%B7第一篇就是了,希望对你有帮助。