By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,865 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,865 IT Pros & Developers. It's quick & easy.

Quick PHP question

P: 1
I have a quick question in reference to php file extenstions...

I have code for example like this... This is all located on this site www.ixalliance.com/BHS/Default

(This is my nav.php file)

<div class="navstyle" id="navmenu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="administration/admin.php" rel="dropmenu1">Administration</a></li>
<li><a href="guidance/guidance.php" rel="dropmenu2">Guidance</a></li>
<li><a href="staff/staff.php" rel="dropmenu3">Staff</a></li>
<li><a href="athletics/athletics.php" rel="dropmenu4">Athletics</a></li>
<li><a href="activities/act-event.php" rel="dropmenu5">Activities/Events</a></li>
<li><a href="pto/pto.php" rel="dropmenu6">PTO</a></li>
<li><a href="forms/forms.php" rel="dropmenu7">Useful Forms</a></li>
</ul>
</div>

<div id="dropmenu1" class="dropmenudiv">
<a href="administration/principal.php">Principal</a>
<a href="administration/prin-sec.php">Prinicpal's Secretary</a>
<a href="administration/vice.php">Vice Principal</a>
<a href="administration/vice-sec.php">Vice Principal's Secretary</a>
<a href="administration/ath-dir.php">Athletic Director</a>
<a href="administration/ath-sec.php">Athletic Director's Secretary</a>
</div>


<div id="dropmenu2" class="dropmenudiv" style="width: 200px;">
<a href="guidance/mrsbranch.php">Mrs. Branch</a>
<a href="guidance/mrsdefilippo.php">Mrs. Defilipo</a>
<a href="guidance/mrspicazio.php">Mrs. Picazio</a>
<a href="guidance/mrskacur.php">Mrs. Kacur</a>
</div>

<div id="dropmenu3" class="dropmenudiv" style="width: 200px;">
<a href="staff/english/eng-dep.php">English Department</a>
<a href="staff/science/sci-dep.php">Sciences Department</a>
<a href="staff/math.math-dep.php">Math Department</a>
<a href="social/social/social-dep.php">Social Studies Department</a>
<a href="business/business-dep.php">Business Department</a>
<a href="tech_arts/tech_arts-dep.php">Technology and The Arts Department</a>
<a href="world/worldlang-dep.php">World Language Department</a>
<a href="pe_health-dep/pe_health-dep.php">Physical Education Department</a>
<a href="special_ed/special_ed-dep.php">Special Education</a>
<a href="instructional/instruct_aides.php">Instructional Aides</a>
</div>

<div id="dropmenu4" class="dropmenudiv" style="width: 200px;">
<a href="athletics/baseball.php">Baseball</a>
<a href="athletics/basketball_boys.php">Basketball Boys</a>
<a href="athletics/basketball_girls.php">Basketball Girls</a>
<a href="athletics/cheerleading.php">Cheerleading</a>
<a href="athletics/cross_crountry.php">Cross Country</a>
<a href="athletics/field_hockey.php">Field Hockey</a>
<a href="athletics/football.php">Football</a>
<a href="athletics/lacrosse.php">Lacrosse</a>
<a href="athletics/soccer.php">Soccer</a>
<a href="athletics/softball.php">Softball</a>
<a href="athletics/tennis_boys.php">Tennis Boys</a>
<a href="athletics/tennis_girls.php">Tennis Girls</a>
<a href="athletics/track_field.php">Track & Field</a>
<a href="athletics/wrestling.php">Wrestling</a>
</div>

<div id="dropmenu5" class="dropmenudiv" style="width: 200px;">
<a href="activities/band_choir.php">Band & Choir</a>
<a href="activities/bbc.php">BBC</a>
<a href="activities/drama.php">Drama Club</a>
<a href="activities/expressions.php">Expressions</a>
<a href="activities/french_club.php">French Club</a>
<a href="activities/gsa.php">GSA</a>
<a href="activities/key_club.php">Key Club</a>
<a href="activities/mutli-cult.php">Multi-cultural Club</a>
<a href="activities/plc.php">PLC</a>
<a href="activities/rebel.php">REBEL</a>
<a href="activities/ski_club.php">Ski Club</a>
<a href="activities/stock_club.php">Stock Market Club</a>
<a href="activities/student_council.php">Student Council</a>
<a href="activities/tech_comm.php">Tech Committee</a>
<a href="activities/wampus.php">WAMPUS</a>
<a href="activities/year_book.php">Year Book</a>
</div>

<script type="text/javascript">

cssdropdown.startmenu("navmenu")

</script>

Now, when you are on the index page you can go right to the administration page, but from the administration page you cannot go back to the index page...

I call the file in the admin.php page <?php include('../nav.php'); ?>

I would really appreciate the help, thank you.
Mar 28 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.