simeonC Posted November 18, 2014 Share Posted November 18, 2014 if ($count==1){ header("Location:store.php"); } very simple I have issolated it and it doesn't redirect maybe u can see where my mistake is Quote Link to comment https://forums.phpfreaks.com/topic/292532-header-doesnt-seem-to-work-doesnt-redirect/ Share on other sites More sharing options...
requinix Posted November 18, 2014 Share Posted November 18, 2014 You should also exit; after doing that, but no, in that tiny bit of code you posted there isn't anything obviously wrong. Quote Link to comment https://forums.phpfreaks.com/topic/292532-header-doesnt-seem-to-work-doesnt-redirect/#findComment-1496851 Share on other sites More sharing options...
Solution simeonC Posted November 18, 2014 Author Solution Share Posted November 18, 2014 So stupid me... I was sending html before the header. haven't coded in months so I am So Stupid For simple mistake Quote Link to comment https://forums.phpfreaks.com/topic/292532-header-doesnt-seem-to-work-doesnt-redirect/#findComment-1496923 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.