in reply to CGI Parameters

If I am understanding your question correctly, yes, you can use CGI.pm to do this. Just do: $q->param('DELIVERMESSAGE') where $q is the instance of CGI. That will give you the value of DELIVERMESSAGE (in the example below, it would be "bar"), if you are using it as www.foo.com/MyScript.cgi?DELIVERMESSAGE=bar
As for the Comms-Branch bit, I'm not sure either, are you using any sessions or cookies?

dhoss
"and I wonder, when I sing along with you if everything could ever feel this real forever? if anything could ever be this good again? the only thing I'll ever ask of you, you've gotta promise not to stop when I say 'when'", she sang

Replies are listed 'Best First'.
Re: Re: CGI Parameters
by Gerard (Pilgrim) on Jan 12, 2004 at 02:54 UTC
    Thanks for your reply. Just a quick question. What would $q->param('DELIVERMESSAGE') return if DELIVERMESSAGE is not set to equal anything?.

    ie. If the only thing that is passed is
    MyScript.pl?DELIVERMESSAGE OR MyScript.pl?MESSAGECOUNT
    How would I be able to tell whether they wanted DELIVERMESSAGE or MESSAGECOUNT??
    As for the sessions or cookies, the answer is no.
    Thanks, Gerard.
    Update: I see that roger has answered my question below. It was the defined bit that I was really missing in my understanding
      I would use $ENV{'QUERY_STRING'} then, if you don't have name/value params.

      dhoss
      "and I wonder, when I sing along with you if everything could ever feel this real forever? if anything could ever be this good again? the only thing I'll ever ask of you, you've gotta promise not to stop when I say 'when'", she sang