Languages :: PHP :: question about placement in a php page |
|||
| By: wiceman |
Date: 29/10/2004 00:00:00 |
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 | 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 | Type : Comment |
|
| So doing it with PHP is out of the question? |
|||
| By: VGR | Date: 30/10/2004 21:33:00 | 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 |
|||
©2012 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








