标头在localhost上工作但不在线工作 [英] header working on localhost but not working online

查看:57
本文介绍了标头在localhost上工作但不在线工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我这个

please help me with this

展开 | 选择 | Wrap | 行号

推荐答案

您提供的代码没有错误,除了漂浮在它中间的随机html,虽然我认为这只是你发布时的意外。

但是,我认为你可能有两个问题:

1.您已从localhost切换到实际服务器。您的数据库信息(内容,连接数据)是否已保留?

2.您编写了巨型if / else if块而没有其他情况。如果从未设置
The code you have provided is without error, except for the random html floating in the middle of it, though I think that was just an accident when you posted it.
However, I think you may have two issues:
1. You switched from localhost to an actual server. Has your database information (contents, connection data) been preserved?
2. You coded the giant if/else if block without an else case. If


_POST [''rvt''],您的页面将永远不会重定向您。通过在代码末尾添加一个else块来检查以确保这是有效的(否则echorvt not set;)如果
_POST[''rvt''] was never set, your page would never redirect you. Check to make sure this is working by adding an else block at the end of your code (else echo "rvt not set";) If


_POST [''rvt'']是设置,你的问题可能是一组elseif块中的逻辑问题。如果没有,如果他们评估为真,你可能同样盯着一个空白页面。通过将您的上一个elseif更改为else来查看这是否是问题。如果你得到了骰子消息,这意味着你的POST变量都没有设置好,或者你的逻辑是错误的。


~anon
_POST[''rvt''] is set, your problem may be a logical one in the set of elseif blocks. If none if them eval to true, you may similarly be staring at a blank page. See if this is the problem by changing your last elseif to an else. If you get the die message, it means that either your POST variables are not all set, or your logic is wrong.

~anon


这篇关于标头在localhost上工作但不在线工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆