Jump to content


PHP: Linking with Coumns


5 replies to this topic

#1 zonogon

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 26 March 2006 - 01:03 PM

Posted Image

Thats the basic idea of a site im making. How would I go about making the links change the stuff in Content #1 and Content #2?

EX.

Link 1: Content:#1 Content#2

Home News Latest Project
About Pictures About stuff


----
Is there a php code, or even html that makes clicking 1 link change 2 things at once with out the use of iframes?

#2 Mr. Matt

    Moderator

  • P2L Staff
  • PipPipPipPip
  • 1,945 posts
  • Gender:Not Telling

Posted 26 March 2006 - 01:48 PM

the way i would do that is with the links have them as page.php?c1=home&c2=pictures (where c1 = content 1 and c2 = content 2)

and within the content areas you have if(); statements which then pulls the content or displays the content from the db or where ever it is.

any problems pm me

#3 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 26 March 2006 - 02:18 PM

or simply use frames (google it for tuts)

#4 zonogon

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 26 March 2006 - 02:35 PM

Thx deadly, ill try it out.

Coolaid, as I mentioned, I didn't want to use frames. Thx for your imput though.

#5 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 26 March 2006 - 02:36 PM

Wasnt it you who said frames suck? :)

Frames are easier, but if you want to go for a more cleaner i'd go for PHP Includes

#6 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 26 March 2006 - 04:09 PM

Changing two frames at once through one link is impossible without JS (as far as i know), but as well all know, JS has it's downsides.

PHP would probably be ideal as deadly suggested. Avalanches link should provide more info as to how you could go about doing that.

Edited by rc69, 26 March 2006 - 04:09 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users