Forum Moderators: open
This is the code I have used to create the drop down menu;
<form name="form1" method="post">
<b><small>Select</small></b>
<select name="dd1" size="1">
<option value="http://www.url.co.uk/w.htm">W</option>
<option value="http://www.url.co.uk/x.htm">X</option>
</select>
<input type="button"
onclick=
"location =
document.form1.dd1.options
[document.form1.dd1.selectedIndex].value;"
value="GO">
</form>
I have put the code into every page manually but i;m sure there is an easy way of doing it. Could I put it as a seperate file and link it into my pages (like with a css) so that every time I update it on the main file it automatically updates on every page to include the new links>?
Thanks in advance
<?php include 'file.txt';?> Then in future you'll only have to update menu.php for the changes to be copied out to all your pages.