How To Get Login Box To Work How To Get Login Box To Work
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How To Get Login Box To Work

Started by gymnastdude182, January 10, 2006, 04:15:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gymnastdude182

Hi! Thanks for coming into this thread. I made a login box (with images) . When you type the username and password, and click login it will take you to the login page (in internet explorer) and makes you log in there... in mozilla, it takes you to the login.php page saying "Welcome test..." I want it to directly go to the index without saying that ( and still be logged in). does anyone know how to do this?

url: http://www.slave4u.com/backup/
username: test
password: test

- Thanks so much for your time!

gymnastdude182


Abbas Ali

Edit login.php

Replace


        pageheader($lang_login_php['login'], "<META http-equiv=\"refresh\" content=\"3;url=$referer\">");
        msg_box($lang_login_php['login'], sprintf($lang_login_php['welcome'], $USER_DATA['user_name']), $lang_continue, $referer);
        pagefooter();


with


        header("Location: $referer");
Chief Geek at Ranium Systems

gymnastdude182

hey thanks for replying! The log in works in mozilla, but not internet explorer! I don't know how to fix it. In mozilla it will log you in. In internet explorer, it will take you to the login.php page and make you log in there. ANY idea on how to fix that?

p.s. - thanks again for reading!

Abbas Ali

I don't know why that is happening. May be some cookie issues with IE. Make sure that in IE "Allow all cookies" setting is set to yes.
Chief Geek at Ranium Systems

gymnastdude182

I made it so my IE accepts all cookies, and it stillllll did not work. I don't know what else to do. Is there another way to code this?

Abbas Ali

Other option would be to modify login.php to change the looks of that page instead of making a separate login page and then posting the form on original login.php
Chief Geek at Ranium Systems

gymnastdude182

The weird thing is, it works PERFECTLY in every browser when it says:

Quote<input input name="submitted" type="submit" class="button" value="Login">

- That is for the button. When I use this html for an image, it won't work in IE at all if you are not logged in. If you are logged in, and go back to that page and re-type the username and password, it will say "You are already logged in !"

Quote<input input name="submitted" type="image" class="submit" value="Login" src="http://www.slave4u.com/backup/themes/tan/login/login_13.jpg">

- That won't work! I do NOT understand why. Is there another way of going about this. I tried editing the login.php page, but that just lead to more problems. I am so close on this. thanks for your help too! how do I fix this.

Abbas Ali

Change


<input input name="submitted" type="image" class="submit" value="Login" src="http://www.slave4u.com/backup/themes/tan/login/login_13.jpg">


to


<input name="submitted" type="image" class="submit" value="Login" src="http://www.slave4u.com/backup/themes/tan/login/login_13.jpg">


and try.
Chief Geek at Ranium Systems

gymnastdude182

#9
That didn't work. only because I mispelled the code above this post. damn it I had some hope haha. I meant to put:

Quote<input name="submitted" type="image" class="submit" value="Login" src="http://www.slave4u.com/backup/themes/tan/login/login_13.jpg">

--- should i just face the facts that it isnt ever going to work (for some unknown reason) ?

Abbas Ali

Hmmm...I think i found the problem.

Edit login.php

Replace


if (isset($_POST['submitted'])) {


with


if (isset($_POST['submitted']) || isset($_POST['submitted_x'])) {


I think $_POST['submitted'] is not coming in IE and hence that problem is occuring.
Chief Geek at Ranium Systems

gymnastdude182

ahhhhhhhhhhhhhhhhhhh! It freaking works! Dude, you are my hero! That did the trick. Thanks SOOO much I seriously really apprecitae it!!!