- Mar 23, 2001
- 2,896
- 2
- 81
I'm working on an internal webiste that requires the user to sign-in.
Currently the login is page is called either without "parameters": loginpage.php If they are logging into the main page as default user.
Or with "parameters": loginpage.php?src=X (where X identifies the page they came from)
The code then looks like this:
/* verify login etc... */
if($_POST['src'] == "1")
{
echo '<META http-equiv="refresh" content="0;URL=http://.../page1.php">';
}
else
{
echo '<META http-equiv="refresh" content="0;URL=http://.../page2.php">';
}
The code works in IE but doesn't do anything in FireFox (most recent version).
Anyone know why it's not working in FF?
I'm sure there's probably a better way, but I still consider myself a novice with PHP, so I'm open to suggestions for better ways.
Thanks for the help.
Edit: Also on another page I have the page setup to refresh itself every minute... this also doesn't seem to work in FF... it's a meta refresh tag as well.
Also I checked the "WebDeveloper" plugin and meta redirect is not blocked... and it doesn't work with that plugin is disabled either.
Currently the login is page is called either without "parameters": loginpage.php If they are logging into the main page as default user.
Or with "parameters": loginpage.php?src=X (where X identifies the page they came from)
The code then looks like this:
/* verify login etc... */
if($_POST['src'] == "1")
{
echo '<META http-equiv="refresh" content="0;URL=http://.../page1.php">';
}
else
{
echo '<META http-equiv="refresh" content="0;URL=http://.../page2.php">';
}
The code works in IE but doesn't do anything in FireFox (most recent version).
Anyone know why it's not working in FF?
I'm sure there's probably a better way, but I still consider myself a novice with PHP, so I'm open to suggestions for better ways.
Thanks for the help.
Edit: Also on another page I have the page setup to refresh itself every minute... this also doesn't seem to work in FF... it's a meta refresh tag as well.
Also I checked the "WebDeveloper" plugin and meta redirect is not blocked... and it doesn't work with that plugin is disabled either.
Last edited: