anyone has PHP experience

PatrickOttawa

新手上路
注册
2004-08-25
消息
53
荣誉分数
0
声望点数
0
Hi Everyone,

I am kind of new to PHP programming, I am doing some coding, here I have some questions.

I have a login page which is written by html and java , so after filling in the user name and the password, I will send the request to server, there is actually a pnp page to connect with MySQL server and check if the username and password are correct. My question here is how I get back to login page if not the correct user, and how to go to the main page if the user is authorized.

Thanks!
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
试试这个,我的php代码跟论坛的过滤有冲突没法直接帖,点附件,05年码的代码,不知道跟现在的php还兼容不.
其实关键的地方就是用html自带的refresh
meta http-equiv='refresh'
还有一个方法就是
http://php.net/manual/en/function.header.php
 

附件

php has function redirect() which can do what you want.
 
后退
顶部