PHP expert |
|
ik heb nu eindelijk ook die navigatie in php, maar nu wil ik dus een een map oproepen, alleen hoe doe ik dit, de link is:
en.php?page=guestbook/index
en.php?page=guestbook/index
(is idd anders dan bij onderwerp staat, maar dat is algemeen is wat beter te begrijpe;-) )
volgens mij heb ik het script van sm.be vandaan maar weet nie meer cker, drom plaats ik hier ff het script
en als ik nou op de link druk dan laat hij mijn home pagina zien home-en.htm in mijn geval
//dit staat waar ik het wil laten zien ;)
<?php
switch($page)
{ default: include('home-en.htm');
break; case "about": include('about-en.htm');
break; case "dutch": include('dutch-en.htm');
break; case "english": include('en-en.htm');
break; case "paperback": include('paperback-en.htm');
break; case "other": include('other-en.htm');
break; case "pictures": include('pic-en.htm');
break; case "forum": include('forum');
break; case "guestbook": include('guestbook/index.php');
break; case "sale": include('webshop/index.php');
break; case "links": include('links.htm');
break; case "contact": include('contact.php');
}
?>
//dit staat waar ik het wil laten zien ;) <?php switch($page) { default: include('home-en.htm'); break; case "about": include('about-en.htm'); break; case "dutch": include('dutch-en.htm'); break; case "english": include('en-en.htm'); break; case "paperback": include('paperback-en.htm'); break; case "other": include('other-en.htm'); break; case "pictures": include('pic-en.htm'); break; case "forum": include('forum'); break; case "guestbook": include('guestbook/index.php'); break; case "sale": include('webshop/index.php'); break; case "links": include('links.htm'); break; case "contact": include('contact.php'); } ?>
//dit is me navigatie, beetje lang maar komt omdat ik met rollovers werk ;)
<a href="en.php?page=home" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','images/home_rollover.gif',1)"><img src="images/home.gif" name="Home" width="175" height="25" border="0"></a><br>
<a href="en.php?page=about" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','images/about_rollover.gif',1)"><img src="images/about.gif" name="about" width="175" height="25" border="0"></a><br>
<a href="en.php?page=dutch" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('dutch','','images/dutch_rollover.gif',1)"><img src="images/dutch.gif" name="dutch" width="175" height="25" border="0"></a><br>
<a href="en.php?page=english" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('english','','images/english_rollover.gif',1)"><img src="images/english.gif" name="english" width="175" height="25" border="0"></a><br>
<a href="en.php?page=paperback" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('paperback','','images/paperback_rollover.gif',1)"><img src="images/paperback.gif" name="paperback" width="175" height="25" border="0"></a><br>
<a href="en.php?page=other" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('other','','images/other_rollover.gif',1)"><img src="images/other.gif" name="other" width="175" height="25" border="0"></a><br>
<a href="en.php?page=pic" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('pictures','','images/pictures_rollover.gif',1)"><img src="images/pictures.gif" name="pictures" width="175" height="25" border="0"></a><br>
>> <a href="en.php?page=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('forum','','images/forum_rollover.gif',1)"><img src="images/forum.gif" name="forum" width="175" height="25" border="0"></a><br>
>> <a href="en.php?page=guestbook/index" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('gb','','images/gb_rollover.gif',1)"><img src="images/gb.gif" name="gb" width="175" height="25" border="0"></a><br>
>> <a href="en.php?page=webshop/index" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Sale','','images/sale_rollover.gif',1)"><img src="images/sale.gif" name="Sale" width="175" height="25" border="0"></a><br>
<a href="en.php?page=links" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','images/links_rollover.gif',1)"><img src="images/links.gif" name="links" width="175" height="25" border="0"></a><br>
<a href="en.php?page=contact" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/contact_rollover.gif',1)"><img src="images/contact.gif" name="Image15" width="175" height="25" border="0"></a><br>
<a href="http://www.cusslersociety.com/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','images/member_rollover.gif',1)"><img src="images/member.gif" name="Image16" width="175" height="63" border="0"></a><br>
//dit is me navigatie, beetje lang maar komt omdat ik met rollovers werk ;) <a href="en.php?page=home" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','images/home_rollover.gif',1)"><img src="images/home.gif" name="Home" width="175" height="25" border="0"></a><br> <a href="en.php?page=about" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','images/about_rollover.gif',1)"><img src="images/about.gif" name="about" width="175" height="25" border="0"></a><br> <a href="en.php?page=dutch" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('dutch','','images/dutch_rollover.gif',1)"><img src="images/dutch.gif" name="dutch" width="175" height="25" border="0"></a><br> <a href="en.php?page=english" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('english','','images/english_rollover.gif',1)"><img src="images/english.gif" name="english" width="175" height="25" border="0"></a><br> <a href="en.php?page=paperback" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('paperback','','images/paperback_rollover.gif',1)"><img src="images/paperback.gif" name="paperback" width="175" height="25" border="0"></a><br> <a href="en.php?page=other" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('other','','images/other_rollover.gif',1)"><img src="images/other.gif" name="other" width="175" height="25" border="0"></a><br> <a href="en.php?page=pic" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('pictures','','images/pictures_rollover.gif',1)"><img src="images/pictures.gif" name="pictures" width="175" height="25" border="0"></a><br> >> <a href="en.php?page=forum" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('forum','','images/forum_rollover.gif',1)"><img src="images/forum.gif" name="forum" width="175" height="25" border="0"></a><br> >> <a href="en.php?page=guestbook/index" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('gb','','images/gb_rollover.gif',1)"><img src="images/gb.gif" name="gb" width="175" height="25" border="0"></a><br> >> <a href="en.php?page=webshop/index" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Sale','','images/sale_rollover.gif',1)"><img src="images/sale.gif" name="Sale" width="175" height="25" border="0"></a><br> <a href="en.php?page=links" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','images/links_rollover.gif',1)"><img src="images/links.gif" name="links" width="175" height="25" border="0"></a><br> <a href="en.php?page=contact" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','images/contact_rollover.gif',1)"><img src="images/contact.gif" name="Image15" width="175" height="25" border="0"></a><br> <a href="http://www.cusslersociety.com/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','images/member_rollover.gif',1)"><img src="images/member.gif" name="Image16" width="175" height="63" border="0"></a><br>
ook weet ik dat dit script zeer onveilig is, maar het werkt bij mij, behalve de mappen dan
de desbetreffende regels in me navigatie zijn aangegeven met >> terverduideling
ik hoop dat mijn vraag duidelijk is en dat jullie mij verder kunnen helpen
ik plaats hier ook de site ter verduideling en niet ter reclame , admins haal maar weg als jullie het nodig vinde
<a href="http://cussler.cu.funpic.org/en.php>de link naar de site</a>
|