Login Script problem with IE7 and 8

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PHPFred
Forum Newbie
Posts: 1
Joined: Sun Feb 15, 2009 6:41 am

Login Script problem with IE7 and 8

Post by PHPFred »

Hi there.

I am hopeing someone can help. I am using .htaccess and .htpasswr to protect some files. I have designed a login page with a simple form which integrates well into the website I am designing. The scrips below work really well in all browsers apart from IE7 and IE8, does anyone know a work around I could use? Thank you for your help and time in this matter.

the PHP Code:

?>
<?php
$user=$_REQUEST['user'];
$pass=$_REQUEST['pass'];
header("Location: http://".$user.":".$pass."@www.musite.c ... rship.html");
exit;
?>

The HTML Form Code looks like this:

<form action="http://www.mysite.co.uk/registration/login.php" method="post" id="thisform">
<fieldset>
<p><label for="Username">Username:</label> <input type="text" name="user"></p>
<p><label for="Password">Password:</label> <input type="password" name="pass"></p>
<p><input type="submit" value="Login"></p>
</fieldset>
</form>

</form>
sparrrow
Forum Commoner
Posts: 81
Joined: Mon Oct 20, 2008 12:22 pm

Re: Login Script problem with IE7 and 8

Post by sparrrow »

Please provide more information. Do the browsers generate an error? Does the URL parse together and appear in the address bar as you would expect? What behavior are you seeing or not seeing exactly?
Post Reply