登录问题 [英] problems with my login

查看:75
本文介绍了登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否有人可以帮助我。说实话,我真的是个新手。我有一个网站,我正在努力使用我在朋友的帮助下制作的代码,我设置了一个登录系统。它适用于我们使用的服务器。但是当我试图将它改编为网站的不同服务器时,我需要这个功能,因为它似乎无法工作。


在过渡的某个地方,某些东西已经丢失或者没有添加。我确定我已经涵盖了所有的基础。我知道会有更多信息来自我,但是如果有人能想出任何明显的理由那么我就可以开始将它们从列表中删除了!


我期待听到来自任何人!

Hi, i don''t know if anyone can help me. I''m really a novice to be honest. I have a site I''m working on and using some code I made with the help of a friend i set up a login system. It worked on the server we were using. But when i tried to adapt it to a different server for a website I needed this functionality for it doesn''t seem to work.

Somewhere in the transition something has either been lost or not added. I''m sure I''ve cover all the bases. I know there will be more info from me but if anyone can think of any obvious reasons that would be great I can then start to tick them off the list!

I look forward to hearing from anyone!

推荐答案

嗨。欢迎来到TSDN!


有很多原因导致这种情况发生,我几乎不知道从哪里开始。如果你可以在这里发布你的代码会有所帮助,所以我们可以看看我们是否发现了特定的东西。


我要找的第一件事就是任何依赖于 register_globals 或者从绝对路径加载资源或链接的东西(http:// localhost / page.php"而不是" /page.php")。


但正如我所说,除非我们能看一下您的代码,否则无法说出来。
Hi. Welcome to TSDN!

There are so many reasons why that could be happening I barely know where to start. It would help if you could post your code here, so we could see if we spot anything specific.

The first things I''d look for is any code that relies on register_globals or something that loads resources from or links to an absolute path ("http://localhost/page.php" rather than "/page.php").

But as I say, it''s impossible to say unless we can have a look at your code.


有点乱,但这里是登录代码。它在一个名为account.php的单独文档中。然后我在页面中使用了include_once,我希望它出现。如果这是有道理的。无论如何看到:

Ok bit of a mess but here is the login code. its in a separate document called account.php. I have then used an include_once within the page i want it to appear. if that makes sense. anyway see below:


展开 | 选择 | Wrap | 行号


好的。


在更改任何内容之前,将短标记更改为真正的PHP标记。

默认情况下,PHP中禁用短标记,您应该始终避免使用它们。它们有点短,但老实说,它们只不过是麻烦。


即:
Ahh ok.

Before you change anything, change the short-tags into real PHP tags.
Short-tags are disabled by default in PHP and you should avoid using them at all times. They are a little shorter, but honestly, their nothing but trouble.

That is:
展开 | 选择 | 换行 | 行号


这篇关于登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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