darklexus2k9 Posted September 2, 2009 Share Posted September 2, 2009 ok i have a search forum on my new site and well i need it to go to a new page were the search results will be shown i have this code for it to show the results on the same page <? if ($search != NULL) { include("includes/results.php"); //If search variable is not = NULL display search results. } ?> but this is just not working any more <?PHP (READ" ALL HELP APPRECIATED " ?> i know about the new goto function but i dont know if that wood work or not thanks Quote Link to comment https://forums.phpfreaks.com/topic/172787-need-help-plz/ Share on other sites More sharing options...
Garethp Posted September 2, 2009 Share Posted September 2, 2009 header("Location: Page.php"); Quote Link to comment https://forums.phpfreaks.com/topic/172787-need-help-plz/#findComment-910726 Share on other sites More sharing options...
darklexus2k9 Posted September 2, 2009 Author Share Posted September 2, 2009 thanks for your replay but were wood i put that Quote Link to comment https://forums.phpfreaks.com/topic/172787-need-help-plz/#findComment-910984 Share on other sites More sharing options...
mikesta707 Posted September 2, 2009 Share Posted September 2, 2009 hahaha wood. you could put that after your if statement, but if you are relying on post data being passed to the results page to show your results, you aren't going to want to do that. Why not just set your form's action to your results.php page? Quote Link to comment https://forums.phpfreaks.com/topic/172787-need-help-plz/#findComment-910986 Share on other sites More sharing options...
darklexus2k9 Posted September 2, 2009 Author Share Posted September 2, 2009 thanks i will try that and pleas don't mock me if i spell words wrong i left school at 5 years old Quote Link to comment https://forums.phpfreaks.com/topic/172787-need-help-plz/#findComment-911073 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.