in reply to Multiple form survey
Your question is a little bit vague, but I do have a suggestion. You don't need to parse the query yourself, try to use HTTP::Daemon, and do something like:
my $d = HTTP::Daemon->new(LocalAddr => "localhost", LocalPort => 80, Listen => 20) || die; my $c = $d->accept my $r = $c->get_request; if ($r) { my %query = $r->uri->query_form(); #.... }
The query would be parsed and stored in %query. Also the "+" sign has been taken care of.
BTW, the query string is not always delimited by "&", a different style uses ";", if you do it by yourself, you have to take this into consideration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Multiple form survey
by chromatic (Archbishop) on Nov 09, 2003 at 21:45 UTC |