佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 869|回复: 7

PHP 急救 拜托

[复制链接]
发表于 16-3-2007 10:33 PM | 显示全部楼层 |阅读模式




我看不懂哪里出了问题

帮帮忙 帮我看看怎样解决

拜托拜托

谢谢
回复

使用道具 举报


ADVERTISEMENT

发表于 16-3-2007 11:28 PM | 显示全部楼层
老兄,我试了。

没有像你的问题哦。

应该是系统问题不是程式问题是吗?
回复

使用道具 举报

 楼主| 发表于 16-3-2007 11:42 PM | 显示全部楼层
我也觉得应该不是程式问题吧。

可是我不知道问题在哪里?

要怎样解决?

怎么办~~~
回复

使用道具 举报

发表于 17-3-2007 12:38 AM | 显示全部楼层
试试改 $HTTP_POST_VARS
回复

使用道具 举报

 楼主| 发表于 17-3-2007 08:52 AM | 显示全部楼层
谢谢大家的意见...


我想应该不是程式问题的问题了

因为我之前一直用 Internet Explorer,然后问题一直存在.

现在改用 Mozilla Firefox,一点问题都没有了.

我想可能是 Internet Explorer 的问题了.

只是不明白为什么之前一直用 IE 都没问题   现在却问题一堆
回复

使用道具 举报

发表于 17-3-2007 02:35 PM | 显示全部楼层
这是php.ini的 E_NOTICE error message
set成error_reporting = E_ALL & ~E_NOTICE 然后restart apache就不会出现了

Part of php.ini :

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
回复

使用道具 举报

Follow Us
发表于 17-3-2007 11:29 PM | 显示全部楼层
先检查$_POST["fullname"]的值;因为不是每一个HTTP Request都有POST。
  1. $name=(isset($_POST["fullname"]))?$_POST["fullname"]:"";
复制代码
回复

使用道具 举报

发表于 23-3-2007 08:58 AM | 显示全部楼层
原帖由 iceDevil 于 16-3-2007 10:33 PM 发表




我看不懂哪里出了问题

帮帮忙 帮我看看怎样解决

拜托拜托

谢谢


这个问题大概是因为你的form 还没有submit, 如果直接这样接收 $_POST value 就会有问题。
建议你把你的code 改成这样


if (isset($_POST['fullname'])){
    $name = $_POST['fullname'];
}
回复

使用道具 举报


ADVERTISEMENT

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 28-8-2025 11:35 PM , Processed in 0.125558 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表