Jump to content

Recommended Posts

Okay, so I stripped down everything I could. This problem only arises in i.e.

 

I have a form, with an action set to login.php. In that login.php, I was checking the DB for the user, and using header to redirect. I was noticing in i.e. sometimes it'd follow the header, sometimes not. So now I stripped out my login.php to be just a header:

 

header("Location: mgm/base.php");

 

If I keep submitting the form, sometimes it will follow the header, sometimes not. Why would that be? Only a one line script which is driving me nuts.

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/50994-solved-header-not-working-from-form/
Share on other sites

Tried a full url, and no luck. It's really strange, I'll click the submit button, it'll follow the header to the correct page. I'll then hit back, and hit submit again, and it'll just go to a blank page (the url bar won't change either). I put an echo in just to make sure it's hitting the php script everytime, and that works correctly every time I submit, it's just the header function acting goofy. Only on ie. Seems like a very basic issue.

 

Form page:

http://clients.palisadesinteractive.com/mgm/

u: mgm

p: m1g2m3

 

 

Login.php script:

<?php
session_start();
$_SESSION['authenticated'] = 'mgm';
header("Location: http://clients.palisadesinteractive.com/mgm/base.php");
?>

Yep, just cleared cache, rebooted even, and tried.

 

Can someone on ie6 or lower try going and hitting submit (after the correct info is entered). Then hit back, and simply hit submit again? When I do it, it comes to a blank screen.

 

IF I do get to that blank screen, and hit refresh, the correct pages that it should have originally redirected to shows. Really strange.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.