another question if you don’t mind! :lol:
[php]
<?php $essays = "essays"; $poetry = "poetry"; $design = "design"; $architecture = "architecture"; $forum = "forum"; $about = "about"; /*if (isset($_GET['header_id'])) { $header_id = $_GET['header_id']; } else { $header_id='02'; } //default*/ //used to catch navigation calls to switch pages switch ($header_id) { case '01': $item_one = $essays; $item_two = $poetry; $item_three = $design; $item_four = $architecture; $item_five = $forum; $item_six = $about; break; case '02': $item_one = $poetry; $item_two = $essays; $item_three = $design; $item_four = $architecture; $item_five = $forum; $item_six = $about; break; case '03': $item_one = $design; $item_two = $essays; $item_three = $poetry; $item_four = $architecture; $item_five = $forum; $item_six = $about; break; case '04': $item_one = $architecture; $item_two = $essays; $item_three = $poetry; $item_four = $design; $item_five = $forum; $item_six = $about; break; case '05': $item_one = $forum; $item_two = $essays; $item_three = $poetry; $item_four = $design; $item_five = $architecture; $item_six = $about; break; case '6': $item_one = $about; $item_two = $essays; $item_three = $poetry; $item_four = $design; $item_five = $architecture; $item_six = $forum; break; } ?> Untitled Documententelesis . | . <?php echo ($item_one); ?> | <?php echo ($item_two); ?> • <?php echo ($item_three); ?> • <?php echo ($item_four); ?> • <?php echo ($item_five); ?> • <?php echo ($item_six); ?> |
[/php]
the main content page (design.htm)
<table width="100%" height="88%" border="0" cellpadding="01" cellspacing="0">
<tr>
<td width="100" align="center" valign="top" class="unnamed1"><p>
<BR><BR><BR>
<a href="navtest.php?imagetoshow=image01_large.jpg"><img src="image01_icon.jpg" width="59" height="60" border="0"></a><BR>
<a href="navtest.php?imagetoshow=image02_large.jpg"><img src="image02_icon.jpg" width="89" height="60" border="0"></a><BR>
<a href="navtest.php?imagetoshow=image03_large.jpg"><img src="image03_icon.jpg" width="74" height="60" border="0"></a></p> </td>
<td align="center" valign="middle">
<?php
echo('<img src="' . $imagetoshow . '">');
echo('<center> paste info from database for ' . $imagetoshow . '</center>');
?> </td>
<td width="100" align="center" valign="middle"> </td>
</tr>
</table>
sorry for posting so much code… the problem is basically when I click the design link in the header it gives me a newly arranged header and a main design page. but when I click in the design page for it to show a new image the header looses it’s passed variable giving my the default main page (essays)… I hope that made sense… :lol:
sorry, php tags in here don’t seem to work for me…