[aprssig] Web page help

Andrew Rich vk4tec at tech-software.net
Fri Oct 9 05:05:45 EDT 2009


sorted


  ----- Original Message ----- 
  From: Andrew Rich 
  To: TAPR APRS Mailing List 
  Sent: Friday, October 09, 2009 5:41 PM
  Subject: [aprssig] Web page help


  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




------------------------------------------------------------------------------


  _______________________________________________
  aprssig mailing list
  aprssig at tapr.org
  https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig



------------------------------------------------------------------------------



  No virus found in this incoming message.
  Checked by AVG - www.avg.com 
  Version: 8.5.421 / Virus Database: 270.14.8/2423 - Release Date: 10/08/09 18:33:00
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/aprssig_lists.tapr.org/attachments/20091009/0dc41283/attachment.html>


More information about the aprssig mailing list