justinzollar has asked for the wisdom of the Perl Monks concerning the following question:
I have an HTML/Perl form that allows a user to input data. The form where users input the data is called ManagementEnhancement.pl, and the form receiving the data is called ManagementEnhancementUpdate.pl. ManagementEnhancement.pl has POST. ManagementEnhancementUpdate.pl is where I am having an issue. On ManagementEnhancement.pl there is a text box called "txtName" and a person will enter in a name. On ManagementEnhancementUpdate.pl, I need a varaible to accept the value entered, and set it as the variable "$Name". Can someone please help me figure out what I need on the ManagementEnhancementUpdate.pl page in order to accept the data? Here are my use statements at the top of ManagementEnhancementUpdate.pl
right now, I'm using "get" and have this to extract the data out of the URL and assign it to variables.use CGI::Carp 'fatalsToBrowser'; use warnings; use Net::SMTP; use HTTP::Request::Common qw(POST); use LWP::UserAgent;
for $parm (@PARM) { chomp ($parm); $parm =~ s/[+]/ /g; $parm =~ s/%([0-9a-fA-F]{2})/pack ('c', hex ($1))/eg; if ($parm =~ /^[a-z0-9]+ *=/i) { ($parmname, $parmvalue) = split (/ *= */, $parm, 2); if ($parmname eq 'txtRequester') { $Reviewer = $parmvalue; } elsif ($parmname eq 'person') { $Person = $parmvalue; } elsif ($parmname eq 'team') { $Team = $parmvalue; } else { $TIME{$parmname} = $parmvalue; } } }
any help would be GREATLY appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl POST question in HTML
by NetWallah (Canon) on Sep 19, 2014 at 23:24 UTC |