Menu
Hope someone can assist me but please be aware I no nothing about PHP but understand that it can quite easily perform the function I hope to acheive.
I would like to change the contents of the contents box (Largest box on the page) when users click on the menu on the right.
Any help would be much appreciated.
Many thanks
Simon ?
[code=php]
<li class="services"><a href="http://www.fsinternet.co.uk/pioneer/booking_forms.htm" class="toplevel">Booking Forms</a></li>
[/code]
[code=php]
<li class="services">
<form method="POST"action="http://www.fsinternet.co.uk/pioneer/pioneer.php?func=1">
<input type="submit" name="submit" value="Booking Forms">
<input type="hidden" name="title" value="This is the title">
<input type="hidden" name="text" value="This is some text"></form>
</a></li>
[/code]
[code=php]
<?
if(isset($func) && $func == 1) {
$title=$_POST['title'];
$text=$_POST['text'];
}
?>
[/code]
[code=php]
<div id="main">
<? echo($title); ?><br><br>
<? echo($text); ?>
</div>
[/code]
[CODE]
<?php
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">'."n";
echo '<html>'."n";
echo '<head>'."n";
echo '<title>'."n";
?>
[/CODE]
[CODE]
<?php
echo '</title>'."n";
echo '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://www.fsinternet.co.uk/pioneer/resources/pstyle.css" rel="stylesheet" type="text/css" />'."n";
echo '<link href="http://www.fsinternet.co.uk/pioneer/resources/playout.css" rel="stylesheet" type="text/css" />'."n";
echo '</head>'."n";
echo '<body>'."n";
echo '<div id="center">'."n";
echo '<div id="frame">'."n";
echo '<div id="header">'."n";
echo '<div id="lino"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm"><img src="http://www.fsinternet.co.uk/pioneer/images/lino.jpg" border="0" alt="Pioneer Administration Centre"></a></div>'."n";
echo '<div id="title"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm"><img src="http://www.fsinternet.co.uk/pioneer/images/title.gif" border="0" alt="Pioneer Administration Centre"></a></div>'."n";
echo '</div>'."n";
echo '<div id="mainnav">'."n";
echo '</div>'."n"'
echo '<div id="piclogo">'."n";
echo '</div>'."n";
echo '<div id="main">'."n";
?>
[/CODE]
[CODE]
echo '<div id="mainright">'."n";
echo '<h2>Administration</h2>'."n";
echo '<div class="admin">'."n";
echo '<ul class="adminlist">'."n";
echo '<li class="servicesTop"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="toplevel">Home</a></li>'."n";
echo '<li class="services"><a href="http://www.fsinternet.co.uk/pioneer/booking_forms.htm" class="toplevel">Booking Forms</a></li>'."n";
echo '<li class="services"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="toplevel">Public Literature</a></li>'."n";
echo '<li class="services"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="toplevel">Events Calendar</a></li>'."n";
echo '<li class="services"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="toplevel">Contacts</a></li>'."n";
echo '<li class="services"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="toplevel">Links</a></li>'."n";
echo '</ul>'."n";
echo '</div>'."n";
echo '<h2>News</h2>'."n";
echo '<div class="admin">'."n";
echo '<ul class="adminlist">'."n";
echo '<li class="servicesTop"><a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="toplevel">Latest News</a></li>'."n";
echo '</ul>'."n";
echo '</div>'."n";
echo '</div>'."n";
echo '<div id="hlf">'."n";
echo '<a href="http://www.hlf.org.uk/English/" target="_blank" class="hlf"><img src="http://www.fsinternet.co.uk/pioneer/images/hlf.jpg" border="0" alt="Heritage Lottery Fund"></a>'."n";
echo '</div>'."n";
echo '<div id="footerleft"><p class="foot"> </p>'."n";
echo '</div>'."n";
echo '<div id="footerright"><a href="http://www.fsinternet.co.uk/index.htm" class="foot">Hosting</a> and <a href="http://www.fsinternet.co.uk/index.htm" class="foot">web design</a> provided free by <a href="http://www.fsinternet.co.uk/index.htm" class="foot">fsinternet.co.uk</a>'."n";
echo '</div>'."n";
echo '</div>'."n";
echo '</div>'."n";
echo '</body>'."n";
echo '</html>'."n";
?>
[/CODE]
[code=php]
<? php include('doc'); ?>
Pioneer Administration Centre
<?php include('header'); ?>
<h1>Welcome to the Pioneer Administration Centre,</h1>
<p>from here you can access <a href="http://www.fsinternet.co.uk/pioneer/booking_forms.htm" class="middle">Booking Forms</a>, <a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="middle">Public Literature</a>, the <a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="middle">Events Calendar</a>, <a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="middle">Contacts</a> and associated <a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="middle">Links</a>.</p>
<p>Designed to support the Pioneer Sailing Trust this website provides a centralised, web-based administration tool which will grow with the needs of the Trust.</p>
<p>Please visit on a regular basis to see the latest <a href="http://www.fsinternet.co.uk/pioneer/pioneer.htm" class="middle">News</a>, updates and improvements.</p>
<p class="mainfoot">If you have any suggestions for improvements to this website please email the <a href="mailto:[email protected]" class="webmaster">Webmaster</a></p>
</div>
<?php include('footer'); ?>
[/code]
This is achieved with frames (frameset). It is HTML - not PHP...[/QUOTE]
[code=php]
<?php echo("he");
?>
llo wo
<?php
$str = "rld!";
echo $str;
?>
[/code]
0.1.9 — BETA 5.8