FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Cutting off Side Nav





cLean
http://pastebin.com/KFhYNAY9

Code for index.php

For some pages i want to cut off the side nav..

I have came up with this..

Code:
 
<?php

 if(!isset($_GET['products']))
  {
    halt
  }
 
  else {
/*
?>
//      <div class="right">
     
     
       
       <h2>Need Help<br>
           <span>Contact Us</span></h2>
       
       <img src="images/xpc/phone.png" alt="Call Us" class="floated">
       <p> <strong>Office: 276.629.5279 <br> TXT: 276.229.0226</strong><br> 
          Schedule a free consultation with a local web designer
        </p>   
       <div class="bg"></div>
       
       <img src="images/xpc/email.png" alt="Email Us" class="floated">
       <p><strong><a onclick="CngClass(this);" href="?contact=1">xpcpro(at)gmail.com</a></strong><br>
          Use email to contact us or send files after business hours
        </p>
     <div class="bg"></div>
     
     <img src="images/xpc/locate.png" alt="Location" class="floated">
     <p><strong>Our Office:</strong><br>
     5056 Philpott Dr<br>
     Bassett, VA 24055<br>
     <em><br>10am - 5pm <br>(Call First / We do House-Calls)</em></p>
     <div class="bg"></div>
     
     <p><a onclick="CngClass(this);" href="?contact=1"><strong>Contact Form </strong></a></p>
     
     </div>
<?php
*/
}
?>

<!-- END RIGHT HAND LINKS -->
 


Will the php comment string block it? I need to make more space on my page to post pictures so i need to take this off.. any other ways please lmk Smile

the If(!isset does the checks for the opposite than if(isset yes ?
cLean
I got it guys Smile thanks though

Code:
<?php
if (isset($_GET['products'])) {

   } else    {


?>
     <div class="right">
     
     
       
       <h2>Need Help<br>
      <span>Contact Us</span></h2>
       
       <img src="images/xpc/phone.png" alt="Call Us" class="floated">
       <p> <strong>Office: 276.629.5279 <br> TXT: 276.229.0226</strong><br>   
          Schedule a free consultation with a local web designer
        </p>   
       <div class="bg"></div>
       
       <img src="images/xpc/email.png" alt="Email Us" class="floated">
       <p><strong><a onclick="CngClass(this);" href="?contact=1">xpcpro(at)gmail.com</a></strong><br>
          Use email to contact us or send files after business hours
        </p>
     <div class="bg"></div>
     
     <img src="images/xpc/locate.png" alt="Location" class="floated">
     <p><strong>Our Office:</strong><br>
     5056 Philpott Dr<br>
     Bassett, VA 24055<br>
     <em><br>10am - 5pm <br>(Call First / We do House-Calls)</em></p>
     <div class="bg"></div>
     
     <p><a onclick="CngClass(this);" href="?contact=1"><strong>Contact Form </strong></a></p>
     
     </div>
<!-- END RIGHT HAND LINKS -->
<? } ?>   
     
Related topics
War on Terror?
Free trade versus protectionism
Funny Pictures!
Need feedback for my website
questions for Christians
New Years Resolutions
How do you get a good hair cut?
Tips please
[Tut Req] Cutting off edges on Photoshop? [Tut Req]
Help with side mounting
Help with side mounting
Global Warming? are we at worlds end?
IF Islam is the fastest growing religion, this is why...
Tis the season to be EVUL
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.