|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Ok Php PROs. Got a big one here (Big one according to me).
I got a website www.ejviper.com Its made in php. I want to split the Page in 5 Zones and those zones into few areas. But I only want to have 5 pages and not a page for each single one of them. My plan is to do this: Zone #1 = index.php --> news Zone #2 = web.php --> web --> clients Zone #3 = art.php --> art --> concept --> nippon --> vehicles --> life drawing Zone #4 = personal.php --> personal Zone #5 = contact.php --> Contact as you see i want to have the conent of the sub-zones (areas) in the same .php document i dont want it to show up all at the same time. I want them to show in different pages when you clic on the link to go to any them. But the main issue remain. How to do it without having to create 1 documente .php for each area i want to add? -- I thought that If if i could divide the page in different parts and then it'll show the park I want only if i clic on the right "link". But how is my question. Thank you All For Reading. And even more thanks to those who answer. --- Eduardo Ceballos. EJViper.com |
|
#2
|
||||
|
||||
|
"Why" is my question. Seems like a weird way to do things. If you insist on it, you could put each bit of content in a div and write some js to manage (show and hide) the appropriate content div when you click the links. That'd be a js question rather than a PHP question, though.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
Quote:
Well if theres no way with Php. Then its ok. Well I understood what you ment though, and thanks but Its a personal goal not to use anything but .swf, .php & .css. Thank ya. My goal is also to have the least ammount of Documents, no matter how much their size are. Thats why i got Template.php , Content.php(mysql, vars, functions, etc.), and the 5 zone pages :P. Well thanks anyway. -- Eduardo Ceballos EJViper |
|
#4
|
|||
|
|||
|
it is not impossible. But rather extensive and unesesary work. What you should do, is something like each zone has an id, and everything has its ovn id. And each time, the page is loaded, the different ids are collected at the start of the page, and the displayd in if(){} sentences. All over the page.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Need Advice in a PHP issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|