Gossamer Forum
Home : General : Perl Programming :

Query String

Quote Reply
Query String
Hello!
Do someone know how can i get the query string if i pass like this?
http://www.domain.com/cgi-bin/some.cgi/somedatastring
would anyone please advise how to get that "somedatastring" without using http://www.domain.com/cgi-bin/some.cgi?somedatastring

Thank you very much!
Quote Reply
Re: Query String In reply to
Use the post method.
Quote Reply
Re: Query String In reply to
Hi,
But I want to show out the stringdata on the url too.. how can I do it?
Thank you!
Quote Reply
Re: Query String In reply to
Code:

$URI = $ENV{'REQUEST_URI'};
($script, $query) = split(/\//, $URI);


Now you have "somedatastring" in $query.

-----------
Web-Reviews
http://www.web-reviews.com/
Quote Reply
Re: Query String In reply to
Thank you polpus!