查看: 868|回复: 7
|
PHP 急救 拜托
[复制链接]
|
|


我看不懂哪里出了问题
帮帮忙 帮我看看怎样解决
拜托拜托
谢谢 |
|
|
|
|
|
|
|
发表于 16-3-2007 11:28 PM
|
显示全部楼层
老兄,我试了。
没有像你的问题哦。
应该是系统问题不是程式问题是吗? |
|
|
|
|
|
|
|

楼主 |
发表于 16-3-2007 11:42 PM
|
显示全部楼层
我也觉得应该不是程式问题吧。
可是我不知道问题在哪里?
要怎样解决?
怎么办~~~  |
|
|
|
|
|
|
|
发表于 17-3-2007 12:38 AM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 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 |
|
|
|
|
|
|
|
发表于 17-3-2007 11:29 PM
|
显示全部楼层
先检查$_POST["fullname"]的值;因为不是每一个HTTP Request都有POST。
- $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'];
} |
|
|
|
|
|
|
| |
本周最热论坛帖子
|