From owner-freebsd-questions Tue Feb 16 01:36:50 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA27446 for freebsd-questions-outgoing; Tue, 16 Feb 1999 01:36:50 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from house.key.net.au (house.key.net.au [203.35.4.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA27374 for ; Tue, 16 Feb 1999 01:36:46 -0800 (PST) (envelope-from keith@apcs.com.au) Received: (from uucp@localhost) by house.key.net.au (8.8.8/8.8.8) id UAA13460 for ; Tue, 16 Feb 1999 20:36:38 +1100 (EST) (envelope-from keith@apcs.com.au) Received: from well.apcs.com.au(203.35.4.19) via SMTP by mailgw.key.net.au, id smtpdx13455; Tue Feb 16 20:36:36 1999 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Date: Tue, 16 Feb 1999 20:37:07 +1100 (EST) Reply-To: keith@apcs.com.au Organization: Australia Power Control Systems P/L From: Keith Anderson To: questions@FreeBSD.ORG Subject: www cgi forms Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All I'm having a problem passing information to my cgi's. I made a little test program to echo back anything I sent it (see below eecho.c) sf I use all works fine but if I try a form nothing happens it runs the script but with no arg's Can some one point me to the right direction on this one. Thanks Keith Anderson #include #include int a; main(int argc, char * argv[]) { printf("Content-type: text/html\n\n"); printf("\n\nArg Test\n\n"); printf("argc = %d\n",argc-1); if (argc > 1) { printf("Args are\n"); for (a = 1;a\n\n"); exit(0); } --- "The box said 'Requires Windows 95, NT, or better,' so I installed FreeBSD." ---------------------------------- E-Mail: Keith Anderson Date: 16-Feb-99 Time: 20:20:29 Satelite Service 64K to 2Meg This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message