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

use CGI::Carp 'fatalsToBrowser'; use warnings; use Net::SMTP; use HTTP::Request::Common qw(POST); use LWP::UserAgent;
right now, I'm using "get" and have this to extract the data out of the URL and assign it to variables.
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.


In reply to perl POST question in HTML by justinzollar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.