News.cgi generates a nicely formatted news article which can be included into a web page. You just have to pass it the news article number so it can look it up in the news database and get the data.
Pretty basic stuff so far. Here's the hard part... I want to create a totally separate page that contains ten links to ten specific news articles. How can I craft the links so that they all point to news.shtml and news.shtml in turn passes a specific article number to the news.cgi script?
I need some way to get the specific news article number to news.cgi. The only way I can think of is to have the link point to some javascript code (I know this isn't the javascript forum) that set a cookie containing the news article number and then jumps to news.shtml. I can then modify the news.cgi to get the news article number from the cookie.
I'd like to know if there's another way to do this without using cookies (although cookies will wotk), maybe by somehow passing the parameter in the link itself.
I need a way to use only one news.shtml file to access all the articles and pass the parameter to the cgi script without putting it in the "include" tag.