Please Help!!!! - Really BASIC stuff!

From: Date: Tue, 06 Mar 2001 21:23:34 +0000
Subject: Please Help!!!! - Really BASIC stuff!
Groups: php.general 
Request: Send a blank email to php-general+get-42811@lists.php.net to get a copy of this message
My God!! You're all stars!!! (This is the **fastest** mailing list I've ever joined) If I have *loads* of links (not just audio & visual) is there a way to create a file to include them all? Basically - what I've got is a frameset with side & main frames (side is for nav, main is for... well, main stuff!) and all my links are in a .js file: ======================= var navAudio="side.php?page=audio" var mainAudio="main.php?page=audio" function openAudio(){ parent.main.location=mainAudio parent.parent.side.location=navAudio } ======================= and the link <a href="javascript:openAudio()">LINK</a> ..but with audio, visual, act 1, act 2, orchestra, cast, and loads of other "pages". Do I put: <? switch ($page) { case "audio" : include("side_audio.txt"); break; case "visual" : include("side_visual.txt"); break; case "cast" : include("side_cast.txt"); break; case "orchestra" : include("side_orchestra.txt"); break; } ?> etc. in every page? Or is there a way of doing the whole link thing and changing several frames with one link in php (just by the .php?page=foo action) I hope this makes sense!!! Thanks LOADS!!!!, Martin :0) ============================================== Musical Director University of York Gilbert & Sullivan Society 177 Hull Road, York YO10 3JY 01904 427 537 / 07951 015 220 mth100@york.ac.uk http://www.mixermanic.co.uk ==============================================

« previous php.general (#42811) next »