On Tue, Jan 09, 2007 at 09:17:40AM +0000, peter church wrote:

> I start the program with this
> my $handler = new CGI;

use strict! use warnings! (and you probably want Taint mode on as well).
 
> print $handler->header("text/html");
> print $handler->start_html("Configurations");

I'd avoid the CGI.pm functions for generating HTML (except _possible_
form controls). They have some oddities (such as, in the version
installed on the server I just did a test with, generating invalid
XHTML 1.0 Basic).

> print $handler->startform("GET","http://${server_name}${script_name}";,
> "text/plain");

text/plain? That isn't an acceptable
value. http://www.w3.org/TR/html4/interact/forms.html#adef-enctype

> When I call the script the first time all is well however when I hit the
> submit button and the second form loads I get  "Content-Type: text/html;
> charset=ISO-8859-1"
> strings :(

I haven't a clue why you would get that. You haven't provided enough
of your script.
 
-- 
David Dorward                                      http://dorward.me.uk


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


Reply via email to