visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
316 experts, 1194 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: question about placement in a php page


By: wiceman U.S.A.  Date: 29/10/2004 00:00:00  English  Points: 125 Status: Answered
Quality : Excellent
Hello there...

This question is easy for those that knows php...

well ive got an php image voting page wich is divided in three table columns..
in the middle collumn ive got the information and pics and ond the sides ive got links ect.

now.. when i press one of the links i want it to display another page in the middle column and not display the
the information that is there allready...

i think its done by including and if statements... but im new to this so how do i do it...

Thanks
By: VGR Date: 29/10/2004 04:35:00 English  Type : Comment
you've to name with attributes = "name=xxxx id=xxx" your central element so that you can treat it like you would a frame, iframe or the like :

document.getElementById('xxxx').innerHTML="the content you want"

all this in javascript of course.
By: wiceman Date: 30/10/2004 21:16:00 English  Type : Comment
So doing it with PHP is out of the question?
By: VGR Date: 30/10/2004 21:33:00 English  Type : Answer
you use PHP, but (as usual) to generate (D)HTML, right ?

in here, you issue JScriot along with the HTML elements.

You CAN do this in PHP alone, but your "click on a link" will produce a request to the server, which will in turn react (with PHP scripting) to produce the resulting page... That's the easiest solution.

Do register to be able to answer

EContact
browser fav
page generated in 469.590190 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page