Hi,

I need to turn off the enctype attribute within a form but even if I 
specify -enctype => 'application/x-www-form-urlencoded' I end up with 
2 encoding types:

<form method="get" action="/cgi-bin/myscript.pl" 
enctype="multipart/form-data" enctype="application/x-www-form-
urlencoded" name="myform">

The docs I have read say that application is the default but that 
doesn't seem to be the case.

"For compatibility, the start_form() method uses the older form of 
encoding by default. If you want to use the newer form of encoding by 
default, you can call start_multipart_form() instead of 
start_form()."

Does anyone know how I can omit the enctype from the form attributes?
Thanx.
Dp.

======== Form section ==========
...snip
print $q->start_form(-method => 'post',
                     -name => 'myform',
                     -enctype => 'application/x-www-form-urlencoded',
                     -action => "/cgi-bin/myscript.pl",
                    );
        print $q->hidden('import','yes');
...snip
===========================

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to