Is it possible to pass variables to a REBOL script via a hyperlink as such?
http://www.rebol.com/cgi-bin/test.cgi?value1
The QUERY_STRING will then contain "value1" correct? as if I had submitted
a form to the .cgi script?
> In the interim while I haven't received any responses, I thought of a
> third solution, albeit I don't like it. The third solution is to have each
> news article rendered within its own form and to have its own submit
> button. The form can carry the article's reference number via the cgi
> object. This is probably the easiest solution, but I can't stand the
> thought of having so many submit buttons on a news headlines page. Perhaps
> I'll change the value of the submit button to be "!" so that it doesn't
> take up so much space. Otherwise, if anyone has an answer to my previous
> question I'm all ears.
>
> 8-)
>
> -Ryan
>
> >Hello. Before I progress any further, I need some advice.
> >
> >With my script News Site, the script saves news articles as object
> >expressions and loads them into memory before rendering a page based on
> >the values in the objects. One of the object values is a reference number
> >to differentiate the object from all others (since the objects are only
> >object expressions they are assigned to object words upon loading.)
> >
> >The next feature I want to add is a commenting system. I want the reader
> >to be able to click on a hyperlink for "comments" which will then execute
> >a
> .cgi
> >script. The .cgi script will then render a page including all of the
> comments
> >people have posted in regards to the news article in question. The
> >question
> I
> >have is, how do I pass a value to a script from a hyperlink so that the
> >script renders the correct set of comments?
> >
> >I have thought of another option, albeit more cumbersome. During the time
> >
> the
> >main script creates object expressions for the news articles themselves,
> >the script could create a separate .cgi script just for that article. But
> >how
> can
> >I write a script to a directory and then make the script executable all
> >at the same time? I'm thinking the web server will see the .cgi extension
> >and assign it executable status, but I'm not sure that is always the
> >case.
> >
> >I hope you're understanding what I am writing. Your help is much
> appreciated.
> >
> >-Ryan
> >
> >
>