Re: forms and cgi

by "Buddy Harris" <bharris(at)stny.rr.com>

 Date:  Mon, 2 Apr 2001 14:08:03 -0400
 To:  "HWG Email List" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
>I have a form that I want to do the following:
>When a person clicks the checkbox, the information is sent to the server
>cgi program (perl most likely) but the page remains as it is. In other
>words, I simply want to send the information checked to the server and have
>the viewer still see the same page.
>Thank you
>Nate

I would probably either make the form part of the cgi program, and direct
the action to itself
#!/usr/bin/perl
print "content-type:text/html\n\n";
print "<form action=\"RightHere.cgi\" method=\"post\">\n";
print "<input type=\"checkbox��������������������������

Or- - (Redirect):

#!/usr/bin/perl
print "Location:http://www.BackToHere.htm\n\n";

   .....................................................................
HTH,
Buddy

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA