Name your archive pages by date, and for convenience store in
folders for year and month-
so the archive for 13 January 2005 will be stored at
www.example.com/2005/01/13.htm
Create a new page that lets your visitor access the archives and
place a form:
<form onsubmit="getarchive();return false">
<p>Enter date: dd/mm/yyyy <input type="text" name="Day"
size="2"> / <input type="text" name="Month" size="2"> /
<input type="text" name="Year" size="4"></p>
<p><input type="submit" value="Go"></p>
<script type="text/javascript">
function getarchive() {
var d = document.forms[0]
var loc = d.Year.value + "/" + d.Month.value + "/" + d.Day.value +
".htm"
document.location.href = loc
}
</script>
The above snippet contains no error checking - a better method will
be to use drop downs for Day, Month and Year, and provide error
pages for invalid dates, like 30 February.
--
Ron Symonds
Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
samh said:
I made a mistake in my description I'm sorry. I need to make a
script or so I don't know to let over the web the visitor choose the
date that he needs to read the news of it and from this point the
web take him to open this page which he pointed to it by choosing
the date from the script