Order Tray | Contact Us | Home | SIG Lists

[aprssig] Web page help

Andrew Rich vk4tec at tech-software.net
Fri Oct 9 07:41:07 UTC 2009


Hello

I am trying to post a large text string to a cgi (perl) so I can process it line by line

Can someone help me ?

I have this so far

-------------------- send code --------------------------------------------------------

<FORM ACTION="/cgi-bin/test.cgi" METHOD="POST">
<textarea cols="50" rows="4" name="comment"></textarea>
<input type=submit value="Submit Details">
<input type=reset value="Reset">     

-------------------- process code --------------------------------------------------------
         

#!/usr/bin/perl
print "Content-type: text/html\n\n";
@pairs= split(/&/, $ENV{'QUERY_STRING'});
foreach $pair (@pairs) 
{
($name, $value) = split(/=/, $pair);
print $name."=".$value;
$FORM{$name} = $value;
@lines = $comment;
foreach (@lines) {
print $_;
}

Andrew

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tapr.org/pipermail/aprssig/attachments/20091009/59d02b7a/attachment.htm>


More information about the aprssig mailing list