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 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. 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...
simeonC Posted November 18, 2014 Author 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 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
Archived
This topic is now archived and is closed to further replies.