AV1611 Posted March 3, 2008 Share Posted March 3, 2008 I need to do a header after a successful query. normally, it's header('Location: domain.com') Can I do it so it just goes to index.php?sql=good ??? I don't want to use the domain, cause the script is not going to stay on this server... Quote Link to comment https://forums.phpfreaks.com/topic/94169-header/ Share on other sites More sharing options...
budimir Posted March 3, 2008 Share Posted March 3, 2008 Yes you can! Try it!!!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/94169-header/#findComment-482351 Share on other sites More sharing options...
AV1611 Posted March 3, 2008 Author Share Posted March 3, 2008 I've had problems before. is it header('Location: index.php?whatever=whatever') ? Quote Link to comment https://forums.phpfreaks.com/topic/94169-header/#findComment-482354 Share on other sites More sharing options...
revraz Posted March 3, 2008 Share Posted March 3, 2008 Yep, unless output has already been sent to the browser. Quote Link to comment https://forums.phpfreaks.com/topic/94169-header/#findComment-482357 Share on other sites More sharing options...
AV1611 Posted March 3, 2008 Author Share Posted March 3, 2008 header() doesn't bring and _POST data that was on it's referer, right? Quote Link to comment https://forums.phpfreaks.com/topic/94169-header/#findComment-482363 Share on other sites More sharing options...
kkeim Posted March 3, 2008 Share Posted March 3, 2008 no Quote Link to comment https://forums.phpfreaks.com/topic/94169-header/#findComment-482415 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.