Ok, I had trouble describing what I'd like to do. Let me try that again.
This is the series of steps (simplified) that I've done so far:
1. User inputs an item number
2. My CGI Script queries the database and returns a set of results which is stored into a array of hash vars.
3. Results are displayed in a table <- stuck here
I want to sort the columns so I'm thinking I'd turn the column names into submit buttons then send the hash (where the results are stored) and sort/display what's been passed. However, I don't know how to pass the results hash to another cgi using post. I've been successful with using anchors and passing it thru with simulating the GET action (i tack info to the URL) but I'm pretty sure my hash won't pass that way very nicely. I'd rather try passing it via the POST method but I haven't been able to find a clear example on the web how to do that.
The examples I've read all accept input from the user before posting but what if I already have the data that I need already?
I'm using CGI, perl and html templates. I'm a newbie at this and feeling a bit overwhelmed right now.
Any help is appreciated.
Tarianna
|