Hey,
I am in need a little bit of help. I am trying to set up a techtuts usersystem. I use the following code to put the username and login form fields into my members iframe.
This is the part from the login.php that refreshs the loginPHP Code:<?
include("login.php");
?>
When I try:PHP Code:setcookie("id", $user[id],time()+(60*60*24*5), "/", "");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "");
// the above lines set 2 cookies. 1 with the user's id and another with his/her password.
echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=http://mydomain.com\"/>Thank You! You will be redirected");
// modify the above line...add in your site url instead of yoursite.com
It loads up my index.php in the iframe.PHP Code:setcookie("id", $user[id],time()+(60*60*24*5), "/", "");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "");
// the above lines set 2 cookies. 1 with the user's id and another with his/her password.
echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=http://mydomain.com\"/>Thank You! You will be redirected");
// modify the above line...add in your site url instead of yoursite.com
When I put:
It makes the links:PHP Code:setcookie("id", $user[id],time()+(60*60*24*5), "/", "");
setcookie("pass", $user[password],time()+(60*60*24*5), "/", "");
// the above lines set 2 cookies. 1 with the user's id and another with his/her password.
echo ("<meta http-equiv=\"Refresh\" content=\"0; URL=http://mydomain.com/login.php\"/>Thank You! You will be redirected");
// modify the above line...add in your site url instead of yoursite.com
HTML Code:www.mydomain.com/login.php/page1.phpHTML Code:www.mydomain.com/login.php/page2.phpIt also makes me sign in twice before it loads the links.HTML Code:www.mydomain.com/login.php/page3.php
I had a techtuts usersystem on my old site ages ago, just can't remember what to put in.
Thanks in advanced.





Reply With Quote


