title: how to disable part of the page's codes after clicking on a a href?
body: <p>I am trying to create tickets system, the idea is to fetch all the tickets beside the new ticket form in the same page, I want when someone click on the ticket the tickets and the new ticket form should disappear and open the ticket with the response form in the same page. I mean when someone clicks on the ticket I want everything to disappear expect the responses form. Please Help.
           
  
  <pre><code>     print ("
       &lt;form action='&lt;?php echo $PHP_SELF;?&gt;' method='post' class='f'&gt;
       &lt;input type='text' name='subject' placeholder='العنوان'&gt;&lt;/input&gt;
       &lt;textarea name='tmessage' placeholder='الموضوع'&gt;&lt;/textarea&gt;
       &lt;input type='submit' name='t_submit' value='انشاء'&gt;&lt;/input&gt;
       &lt;/form&gt;");
       $tsubject=$_POST['subject'];
       $tmessage=$_POST['tmessage'];
       $tsubmit=$_POST['t_submit'];
       $ttdate=date ("Y-m-d");
       if(isset($tsubmit)){
  
       $int=mysql_query("INSERT INTO tickets(id,u_id,message,subject,date,status) 
  
       VALUES('','$_SESSION[id]','$tmessage','$tsubject','$ttdate','0')");
  
       if($int) { echo "تم انشاء التذكرة بنجاح";} else{ echo "خطاء"; }
  
       }
       $gtk=mysql_query("SELECT * FROM tickets WHERE u_id='$_SESSION[id]'");
       while($ftk=mysql_fetch_object($gtk)){
       if($ftk-&gt;status == 0) { $tkst= "معلقة"; }
       if($ftk-&gt;status == 1) { $tkst= "مجابه"; }
       print("&lt;a href='tickets.php?tkid=$ftk-&gt;id' class='f'&gt;$ftk-&gt;subject&lt;/a&gt; . 
  
       $tkst");
       }
       $tkid=$_GET['tkid'];
  
       $uig=mysql_query("SELECT * FROM users WHERE id='$_SESSION[id]'");
       $fuig=mysql_fetch_object($uig);
       $gm=mysql_query("SELECT * FROM tickets WHERE id='$tkid'");
       $fgm=mysql_fetch_object($gm);
       print ("&lt;fieldset&gt;
       &lt;legend&gt;$fuig-&gt;username &lt;/legend&gt;
       $fgm-&gt;message
       &lt;/fieldset&gt;");
       $grs=mysql_query("SELECT * FROM responses WHERE t_id='$tkid' ORDER BY id 
  
       ASC");
       while($fgrs=mysql_fetch_object($grs)){
  
       print("$fgrs-&gt;response &lt;br&gt;");
  
       }
       print("
       &lt;form action='&lt;?php echo $PHP_SELF;?&gt;' method='post'&gt;
       &lt;textarea name='response'&gt;&lt;/textarea&gt;
       &lt;input type='submit' name='rsubmit' value='ارسل'&gt;&lt;/input&gt;
       &lt;/form&gt;
       ");
       $response=$_POST ['response'];
       $rsubmit=$_POST ['rsubmit'];
       $tdate=date ("Y-m-d");
       if(isset($rsubmit)){
  
  
       $ir=mysql_query("INSERT INTO responses(id,t_id,response,r_date) VALUES
  
       ('','$tkid','$response','$tdate')");
       if($ir) { echo "تم ارسال الرد";
       } else { echo "خطاء";}
       }
  
  
  
  
          ?&gt;
  </code></pre>