I'm trying to build a client login page so they can login to their web site before publishing. I have followed the following guide: http://www.phpeasystep.com/workshopview.php?id=6
What I would like to do, is when the user logs in, I want them to be redirected to their site on our server!
Just getting to grips with MySQL with PHP. So any help with either will be much appreciated...
He is right, make the form submit to a page on your server. This can be a little dangerous, so keep that in mind if you are transferring important data. You should be ok from what I believe you want to do though.
this is one issue I have seen. I know of a few tutorials out there that do login pages, but they don't have a good tutorial showing how to handle the actual login. If you used an html refresh code to redirect to a new page, then if someone viewed the source code, they could see that html. Also the page you are redirecting to wouldn't be password protected would it?
I'm trying to build a client login page so they can login to their web site before publishing. I have followed the following guide:
http://www.phpeasystep.com/workshopview.php?id=6
What I would like to do, is when the user logs in, I want them to be redirected to their site on our server!
Just getting to grips with MySQL with PHP. So any help with either will be much appreciated...
Many thanks
Smilinmonki666
header("location:login_success.php");
you need to change it to header("location:http://www.yourdomain.com");
I would say to just have the actual html form's action pointing to the login script on your server.
-T
print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.thesite.com\">";
mind you never done log in stuff yet.....
I had already set myusername as Global & registered it to a session...
http://www.domain.com/beta/mattvot
Am I now logged in without using a password?
Is there a PHP script i can make which will be like the following:
if username the allow to beta/$username
else redirect to login page
???
tried to use php to restrict but nothings working so far..?