davidg has asked for the wisdom of the Perl Monks concerning the following question:
Does not work, but if I put in the ENCTYPE<html> <head><title>Pay Memo</title> </head> <body> <form name="testform" method="post" action="step2.asp"> <input type="hidden" name="id" value="1234"><br> <input type="text" name="thedata"><br> <input type="submit" name="submit_button" value="Test +It"> </form> </body> </html>
it does work. The reading program is this:<html> <head><title>Pay Memo</title> </head> <body> <form name="testform" method="post" enctype="multipart/form-da +ta" action="step2.asp"> <input type="hidden" name="id" value="1234"><br> <input type="text" name="thedata"><br> <input type="submit" name="submit_button" value="Test +It"> </form> </body> </html>
The first example code works fine under mod_perl 1. Any help as to why the ENCTYPE is required now, under mod_perl2, but not under mod_perl 1 would be appreciated. Thanks<% use strict; use CGI; my $q = new CGI; my $data = $q->param('thedata'); %><html> <head><title>Test Script</title> <meta http-equiv="Content-Type" content="text/html; charset=is +o-8859-1"> </head> <body> Got:<%=$data%> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: enctype required??
by chas (Priest) on Apr 02, 2005 at 21:23 UTC | |
by davidg (Initiate) on Apr 02, 2005 at 21:31 UTC | |
by chas (Priest) on Apr 02, 2005 at 21:41 UTC | |
|
Re: enctype required??
by ikegami (Patriarch) on Apr 02, 2005 at 22:58 UTC | |
by davidg (Initiate) on Apr 03, 2005 at 00:33 UTC | |
|
Re: enctype required??
by Errto (Vicar) on Apr 03, 2005 at 00:25 UTC | |
by davidg (Initiate) on Apr 03, 2005 at 00:58 UTC | |
by Errto (Vicar) on Apr 03, 2005 at 01:11 UTC | |
by davidg (Initiate) on Apr 03, 2005 at 03:18 UTC |