Gossamer Forum
Home : Products : DBMan : Customization :

Getting info from a URL link

Quote Reply
Getting info from a URL link
Does any know if I can get some info from a link? For example:

If someone clicked http://www.blah.com/cgi-bin/dbman/db.cgi&Apple=Red

Then print the Apple info to get an output of
Red

I am trying to get info from a link that someone clicks. Is it possible with perl ?
Quote Reply
Re: Getting info from a URL link In reply to
Will it always be Apple (or a known field)? If so, you can just use

$in{'Apple'}

If you're looking for all the info that comes after "db.cgi", you can use

Code:
foreach $value (keys %in) {
[do some processing regarding the input]
}

Make any sense?


------------------
JPD





Quote Reply
Re: Getting info from a URL link In reply to
Yeah, I suppose I could make Apple a field.
The value would not always be the same, like:
Apple=a1S2Dg

I'll have to try your ideas. I was hoping it would be that easy.
Quote Reply
Re: Getting info from a URL link In reply to
It doesn't have to be a field. You can stick anything you want into a URL and get it out again, using the $in{'whatever'} variable.


------------------
JPD