- From: <Fred_Deroche_at_corpsoftnorwood4@stream.com>
- Date: Fri, 13 Dec 96 15:18:56 EST
- To: www-html@w3.org
Please help me understand what I'm doing wrong... When I click/press the submit key, my HTML file displays my CGI file on the screen ... I want it to add to a file (fred.txt) and not display it results... thanks, fred **********this is fred.htm*************** <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN"> <HTML>... <form method="post" action="./fred.cgi"> ... <b>Please help us serve you better by completing the following </b> <p><Input Name="org" Type=text size=25> Your Organization's Name <p><Input Name="name" Type=text size=25> Your Name</n> <p><Input Name="tele" Type=text size=25> Your Telephone ... <input type=submit value="submit"> ... </form> </HTML> **********this is fred.cgi*************** #!/usr/bin/perl .... open ( MAIL, ">> fred.txt") || die print " cannot open mailprog"; print MAIL "name=" $contents('name') \n; print MAIL "org= " $contents('org') \n; print MAIL "tele=" $contents('tele') \n; close(mail); print "<HTML><TITLE>Thanks!</TITLE><BODY>...\n";
Received on Friday, 13 December 1996 15:47:09 UTC