Jump to content

[SOLVED] include() question


dadamssg

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.