dtkvlj5386 2016-07-24 04:40
浏览 40

在代码中未调用变量时使用isset

I am editing the wp-login.php which was created by a plugin for WordPress. I'd like to send a custom text field to a custom table on the registration page, but the plugin is using the same php file for both the login and registration page. So on the login page the insert to the table is failing.

I tried using isset ($POST_) for address1 which is what I am trying to insert to the custom table. But since the login page does not have the field value, it errors trying to find address1. Is Address1 is not called in the code, does isset fail because there was never an address1 called during the script? Is there a workaround when address1 is not defined?

  • 写回答

1条回答 默认 最新

  • dozxos6346 2016-07-24 04:46
    关注

    If your code uses isset ($POST_) as described in your question then that could be your issue because the correct syntax is $_POST not $POST_...

    评论

报告相同问题?

悬赏问题

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