From xemacs-m  Fri Apr 11 10:42:15 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA09832
	for <xemacs-beta@xemacs.org>; Fri, 11 Apr 1997 10:42:14 -0500 (CDT)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id LAA13185; Fri, 11 Apr 1997 11:45:16 -0400 (EDT)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id RAA01307; Fri, 11 Apr 1997 17:41:04 +0200 (MET DST)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id RAA10473; Fri, 11 Apr 1997 17:41:04 +0200
Sender: aichner@ecf.teradyne.com
Newsgroups: comp.infosystems.www.authoring.html,comp.lang.perl.modules
To: wmperry@aventail.com
Cc: xemacs-beta@xemacs.org
Subject: Re: DTD HTML 3.2 Problem with Forms?
References: <rxsafn5y5i3.fsf@midnight.ecf.teradyne.com> <86n2r57fna.fsf@kramer.in.aventail.com>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=ISO-8859-1
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 11 Apr 1997 17:40:53 +0200
Message-ID: <rxs67xty3cq.fsf@midnight.ecf.teradyne.com>
Lines: 77
X-Newsreader: Gnus v5.4.40/XEmacs 20.1(beta12)
In-Reply-To: wmperry@aventail.com's message of 11 Apr 1997 08:17:29 -0700
Posted-To: comp.infosystems.www.authoring.html,comp.lang.perl.modules
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by xemacs.org id KAA09833

The following message is a courtesy copy of an article
that has been posted to comp.infosystems.www.authoring.html,comp.lang.perl.modules as well.

>>>>> "William" == William M Perry <wmperry@aventail.com> writes:

    William> Adrian Aichner <aichner@ecf.teradyne.com> writes:
    >> ============================================================================
    >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    >> <HTML><HEAD><TITLE>DTD HTML 3.2 Problem?</TITLE>
    >> </HEAD>
    >> <BODY>
    >> <FORM METHOD="POST" ENCTYPE=application/x-www-form-urlencoded >
    >> <INPUT TYPE="checkbox" NAME="type" VALUE="input-output">input-outut
    >> </FORM>
    >> <FORM METHOD="POST" ENCTYPE=application/x-www-form-urlencoded >
    >> <INPUT TYPE="checkbox" NAME="type" VALUE="input/output">input/outut
    >> </FORM>
    >> </BODY>
    >> </HTML>
    >> ============================================================================
    >> 
    >> It turns out that the slash in input/output get interpreted as an empty 
    >> end-tag.

    William>   Are you sure its not the '/' in application/x-www-form-urlencoded?

Thanks for the hint!

The odd thing, though, is:

<FORM METHOD="POST" ENCTYPE=application/x-www-form-urlencoded >
<INPUT TYPE="checkbox" NAME="type" VALUE="input-output">input-outut
</FORM>

alone in the <FORM> will check OK.

<FORM METHOD="POST" ENCTYPE=application/x-www-form-urlencoded>
<INPUT TYPE="checkbox" NAME="type" VALUE="input/output">input/outut
</FORM>

alone or together with the other input element will cause the error.

<FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="checkbox" NAME="type" VALUE="input/output">input/outut
</FORM>

will work.

The bad news is the former version is produced by CGI-modules-2.75
which I use in my cgi-bin perl scripts.

I can probably fix this by specifying an explicit enctype in

    print $form->startform;

Regards,

Adrian

    William> -Bill P.



-- 
                            Adrian Aichner
                        Applications Engineer
  Teradyne GmbH
  Semiconductor Test Group    Telephone +49/89/41861(0)-208
  Dingolfinger Strae 2       Fax       +49/89/41861-217
  D-81673 MNCHEN             E-mail    aichner@ecf.teradyne.com

