in reply to Re: globbed variable in parse cgi form - beyond me
in thread globbed variable in parse cgi form - beyond me
thanks ikegami,
it was not my intention to recreate cgi - i was just following the instructions as it were.
Basically I need to be doing something along these lines then(see code), although the input element names are being returned where the values are not. yet...
#! /usr/bin/perl -w use strict; use warnings; use CGI; use CGI::Carp qw(fatalsToBrowser), qw(warningsToBrowser); my ($webmaster, $user, $name, @names, $value, @values, $query); $query = CGI->new; $webmaster = "http\:\/\/www.mysite.com\/"; @names= $query->param; foreach $name(@names){ $value = $query->param('$name'); push(@values, $value); } print "Content-type: text/plain\r\n\r\n"; print "names @names \n\n"; print "values: @values \n\n"; exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: globbed variable in parse cgi form - beyond me
by ikegami (Patriarch) on Jun 27, 2011 at 02:08 UTC | |
by Don Coyote (Hermit) on Jun 27, 2011 at 15:31 UTC | |
by davido (Cardinal) on Jun 27, 2011 at 19:29 UTC | |
by Don Coyote (Hermit) on Jun 28, 2011 at 08:13 UTC | |
by Anonymous Monk on Jun 28, 2011 at 08:38 UTC | |
by ikegami (Patriarch) on Jun 27, 2011 at 18:41 UTC |