[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI.pm & MacPerl (easy one I'm certain)



At 17.52 10/24/97, Richard Freytag wrote:

>$query = new CGI;
>$query->header();
>$query->start_html();
>$query->h1( "Header text");
>
>print "<BR>test cgi stuff:";
>
>$query->start_form;
>
>$query->textfield(-name=>"State",
>                -default=>'gaseous',
>                -justification=>'RIGHT');
>
>$query->end_form;
>
>print $query->p("<BR>done with cgi test");
>$query->end_html();

>You can see the problem.  
>No text field and no "Header text" text.  The same
>problem occurs if I attempt to use the other html
>generating functions.  
>
>I'm sure its simple.  I hope you can help thanks!

The CGI methods return text, they do not print text.

I.e., e.g.:

$query = new CGI;
print $query->header();
print $query->start_html();
print $query->h1( "Header text");

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch