dousou1878 2017-07-31 19:28
浏览 8

我不能在php中查看我的表单页面[重复]

I just done with coding of my recipe form where user will fill it and these data will go to database but i don't know what is mistake in my code ,

you guys can see in snapshot error plus my codes

My Codes:

Error on Browser:

</div>
  • 写回答

1条回答 默认 最新

  • dr6673999 2017-07-31 20:02
    关注

    Without the HTML code posted, I can only speculate that your names in the HMTL form differs from what you expect to receive.

    Another possibility is that since you are using $_REQUEST, then there is a setting in your PHP.INI that stops your GET or POST or all submitted data from being registered in the array. If you use method="post" in your <form> then you can use $_POST to access data, rather than $_REQUEST.

    The error regarding real_escape is just saying that you forgot the mysqli_ at the front of the function name when calling it. I would however strongly recommend that you stop using mysqli and instead take a look at PDO with prepared statements. The only escaping you need to worry about then is making sure you are not vulnerable to XSS, but that is not done with mysqli_real_escape..., but rather with htmlentities.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?