[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] mac perl and cgi



At 21.59 97/4/25, Johnny wrote:
>i just got the O'Reilly CGI book and started hacking out the perl scripts.
>how can i get them to run on mac perl to debug them when the script is
>looking for imput from the browser because it wants to run the following
>line:
>
>&parse_form_data (*simple_form);

Well, normally the form information can be retrieved from the environment
variable QUERY_STRING.  So you can manually set that variable at the top of
your script:

$ENV{QUERY_STRING} = "field1=yes&field2=no&field3=you%20look%20nice";

Hopefully, that'll work for ya.

#================================================================
Chris Nandor                                      pudge@pobox.com
PGP Key 1024/B76E72AD                           http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch