PhP link include page

  • seularts
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jan 02, 2007
  • Posts: 147
  • Loc: Romania
  • Status: Offline

Post February 21st, 2010, 2:39 am

How can i make a link include a page inside my index page, without reloading the whole website.
I thought of this:
<a href="<?php $page=1 ?>">Page</a> //this link is in index.php

<?php if($page=1){
include_once('example.php');
}
?>

It doesn't work, I know, but is there a solution to this!?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 21st, 2010, 2:39 am

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 177 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.