This brings back a few memories for me, of when I wrote my first bulletin
board in perl...
The answer to your question is a simple one, it's as easy as ? (question
mark).
Here's an example:
http://www.chebucto.ns.ca/Webcam/index.cgi?id=pppk&type=message&display=88
This line was actually taken from an html page generated by a perl cgi
script. The format used is the same as if you put method="GET" in your
form tag, except instead of the browser bundling up the information, you
are.
The URL begins as normal, a link to the script, but then it hits a ?.
After the question mark, you can pass variables on to you script by
writing them as name=value&name1=value1&name2=value2 pairs. Actually, it's
not _really passing variables, but it's in a format that cgi-lib.pl will
recognise and put into the %in variable just as it would for a POST'ed
query from a form.
The end result is no change in your code when it comes to accessing your
variables, you can still get at them by calling something like
$in{'name1'}. Of course you'd have to change the code that actually prints
out the html so that it now prints out a link instead of a big long form.
You can visit my bulletin board at http://www.chebucto.ns.ca/webcam
(featuring a live image of Halifax Harbour (shameless plug :)). I can send
you the code upon request, free to cut, paste, mutilate, and otherwise
spread arround (all written in perl of course :). The script (which is
all-in-one posting, displaying, replying, deleting, admining), however,
uses one big flatfile (I really should do something about that) for it's
database, so it probably won't be much help to you there.
I found the bulletin board to be a fun project to do in perl, and I hope
you have fun at it too :)
Johnathan Thibodeau
Pound bang user bin perl
fork while true
On Sat, 2 Jun 2001, Teresa Raymond wrote:
> I'm thinking about changing my bulletin board script so that it shows
> "RE:" related to previous messages and so that it shows a file tree.
> I think I have to have each message have its own separate file and
> when displaying the messages have them a separate links. But how do
> I pass a variable from an html page that isn't used with a form with
> input fields. Or do I make it a form. In which case my question is
> how do I make a link into a submit feature passing the message
> subject as a variable.
>
> Thanks in advance.
>
> -Teresa Raymond
> http://www.mariposanet.com
> [EMAIL PROTECTED]
>