Re: post into hash table

From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 11/27/04


Date: Sat, 27 Nov 2004 07:25:50 +0100

John Bokma wrote:
> Gunnar Hjalmarsson wrote:
>> Bob Walton wrote:
>>> Bremse wrote:
>>>> I'm trying to put values (from form) posted by post method into
>>>> hash
>>>
>>> One possibility: The query string could use the ; character to
>>> separate key-value pairs rather than the & character (either is
>>> permitted and possibly generated by a web server).
>>
>> The query string is probably empty, since it's a form submission
>> via the POST method, and forms always use & as the separator.
>
> Sometimes I call POST forms using GET, sometimes I use a script.
> Don't rely on what you think is on your page.

My point is that splitting on & only can't be causing the OPs problem.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Relevant Pages

  • Re: REs question..
    ... >> Gunnar Hjalmarsson wrote: ... > In the first case, it first matches the whole ... > string, and then the nullstring. ... I didn't recall that empty paren's worked that ...
    (comp.lang.perl.misc)
  • Re: post into hash table
    ... > The query string is probably empty, since it's a form submission via ... > the POST method, and forms always use & as the separator. ...
    (comp.lang.perl.misc)
  • Re: A1 Triple Gold Star for Robin
    ... >> to load and parse a simple query string. ... Do you write CGI apps ... and *typically* the total execution time needs to be far, ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: arrange form data in same order as on form
    ... Gunnar Hjalmarsson wrote in news:bp1hn3$1is5k8$1@ID- ... >> What happens when the query string given is ... > incorrect or questionable statements. ... Sinan Unur ...
    (comp.lang.perl.misc)