dadamssg Posted May 24, 2009 Share Posted May 24, 2009 i have topic pages and on those pages have forms to personal message the person that started the topic. so in my script that validates the message and enters it into the db i use this if($_POST['reply'] =="") { extract($_POST); include("showpage.php");//reply_form.php exit(); } the actual url to the page that displays the topic is something like showpage.php?id=133 but when the reply post is empty the include() part somehow remembers the id=133 part and sends the user back to that page like i want it to but when i try to use this same practice on another page like so it fails if(isset($messages)) { extract($_POST); include("profile.php"); exit(); } the $messages being errors saying that one of the fields was left blank. the include here is not remembering what comes after profile.php...(its not remembering ?id=ausername) can anyone shed some light on why this is working on one page but not the other??? Link to comment https://forums.phpfreaks.com/topic/159441-solved-include-question/ Share on other sites More sharing options...
Ken2k7 Posted May 24, 2009 Share Posted May 24, 2009 It shouldn't work for either cases IMO. :-\ Link to comment https://forums.phpfreaks.com/topic/159441-solved-include-question/#findComment-841068 Share on other sites More sharing options...
dadamssg Posted May 24, 2009 Author Share Posted May 24, 2009 hmm wierd..oh well, i kept the one that was working and kinda rigged headers() to do what i want, thanks though Link to comment https://forums.phpfreaks.com/topic/159441-solved-include-question/#findComment-841071 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.