Jump to content

[SOLVED] Help with PHP navigation


lifeson2112

Recommended Posts

The guy I'm working for really wants a front page similar to the one Overstock.com has. I need to get it to where when a user scrolls over a link an include changes pages. The main problem I have with the way I'm doing it now is the page has to reload. here's a little bit of the code so you can see where I'm coming from.

 

Link:

                  <a href="index.php?page=/frontPhpLinks/powerToolsFront.html"
	  onMouseOver="changeMiddle('/frontPhpLinks/powerToolsFront.html')">
	   <img src="layout_images/powerToolsButtonFront.jpg" ></a>

 

Include area:

                  <?php
	    include( $_GET['page']); 
	   if( $_GET['page'] == "")
	     { include( "/frontPhpLinks/defaultFront.html");  }
	   else { include($_GET['page']);}
	   ?>

 

So, what I really need to to is change the variable 'page' and get the include statement to recognize it without having to reload the page. Is this at all possible?? any help at all would be much appreciated :)

 

oh yeah, here's the url to the site I'm working on: http://www.shopjandl.com

Link to comment
https://forums.phpfreaks.com/topic/40792-solved-help-with-php-navigation/
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.