DarkDragonLord
New Member
- Messages
- 782
- Reaction score
- 0
- Points
- 0
Hi guys, i always used a code to make my links in my webpage. But i dont know why it just dont work anymore.
Help anyone?
In the index.php where is the layout, the place i want to show the content i add this: (the $ddl was $page but since $ is just an array, then i can put any name)
(main.html is the home/starter 'content')
THEN, the link would be:
then, when i click in link, the place where i added the php include, would change and put the rospr.html content. The thing is: ISNT working anymore. Did i misstyped anything ? i was testing here at x10 but just stay the main.html, do not change to the page i call in the link.
THANKS, who make this thing work, i'll give a cookie.
Cya
DDL
Help anyone?
In the index.php where is the layout, the place i want to show the content i add this: (the $ddl was $page but since $ is just an array, then i can put any name)
PHP:
<?php if(isset($ddl)) { include ("$ddl.html");} else { include ("main.html"); } ?>
(main.html is the home/starter 'content')
THEN, the link would be:
HTML:
<a href="index.php?ddl=rospr" target="_self" title="Custom RO Sprites">Sprites</a>
then, when i click in link, the place where i added the php include, would change and put the rospr.html content. The thing is: ISNT working anymore. Did i misstyped anything ? i was testing here at x10 but just stay the main.html, do not change to the page i call in the link.
THANKS, who make this thing work, i'll give a cookie.
Cya
DDL
Last edited: