load php file

load php file

Hi all

I hope someone can help guid me in the right direction.

I want to load a php file depending on what link the user has clicked.

The correct php files is loaded on click but the code in the included php file doesn't function and nothing works.
Here is my working code:

  1.                         $( ".link1" ).click(function() {
  2. $(".here").load('includes/page1.php');
  3. });

  4. $( ".link2" ).click(function() {
  5. $(".here").load('includes/page2.php');
  6. });

  7. $( ".link3" ).click(function() {
  8. $(".here").load('includes/page3.php');
  9. });

  10. $( ".link4" ).click(function() {
  11. $(".here").load('includes/page4.php');
  12. });

However the code in the included php files are not executing. 

If I use (just to test the php file is working) :
  1.       <?php include 'includes/page1.php'; ?>

the code in the included php file works, but when I include the php file using jquery, the file loads up but nothing works :(

Any ideas?

Looking forward to the replies! 

Many thanks