[eluser]boltsabre[/eluser]
As Otemu alluded to, this cannot be done with standard PHP/html.
When a user requests a page a few things happen:
- User clicks a link/page on your site
- The browser gets this url, and passes it to your server
- The server runs the request to get the details of that page (this is where codeigniter starts, your controller runs, pulls any data it needs to from a model, and passes variables to your views via the $data variable you pass to them. The views are constructed, and then your server passes the html from it back to the browser of the user.
So you can set it's a very "set in stone" process:
Browser request page, server makes it, passes back to browser for display.
To dynamically re/load new content into the browser without a page refresh you need to make use of one of the two technologies mentioned by Otemu. They basically go to the server and say, "please give me this little bit of information, but without refreshing the page". When it comes back, it will either replace existing content, or just be inserted somewhere (depending on how you've set it up).