Jump to content


Photo

includes problem


  • Please log in to reply
2 replies to this topic

#1 arielmedel

arielmedel
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 17 October 2006 - 03:01 PM

I saw a simple tutorial to use includes, I made this page http://wetmagazine.o...ff/template.php

but I want it that when a button is clicked only the body part, named page.php, changes, instead all the page loads another content page.

Any help please?

#2 b_angelr

b_angelr
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 October 2006 - 03:20 PM

In the link code you need to specify i wich frame it will be opened
<a href="#" target"framename">your image here</a>


#3 arielmedel

arielmedel
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 17 October 2006 - 03:29 PM

ok, this is the div wher ethe content should appear

<div class="body">your content goes here<?php @ include ("page.php"); ?>
</div>

how can I give it a name? just name=body? like this?:


<div class="body" name="body">your content goes here<?php @ include ("page.php"); ?>
</div>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users