in reply to Re: Re: Help... I know nothing about perl...
in thread Help... I know nothing about perl...

Thanks, OK, so do I place the function in my current form handeler? (I am embarrassed that I am asking for help and do not even know where to start).
  • Comment on Re: Re: Re: Help... I know nothing about perl...

Replies are listed 'Best First'.
Re: Re: Re: Re: Help... I know nothing about perl...
by orkysoft (Friar) on May 02, 2001 at 02:24 UTC

    No, it replaces your current form handler. Of course you'll need to expand it to output more of a document.

    #!/usr/bin/perl use CGI; my $q = new CGI; print $q->header; # HTTP header # Note: the $name and 'name' equivalence is arbitrary. my $name = $q->param('name') || "Anonymous"; print <<ENDOFPAGE; <html><head><title>Thank you, $name!</title></head><body> <p>$name, I want to personally thank you for making world peace possible!</p> <p>$name, if you print this page, and glue it onto your forehead, you'll never need to pay for anything again! You'll even get a free shirt with long sleeves and a ride to a big building where they'll put you in a comfy room with padded walls!</p> </body></html> ENDOFPAGE # That ENDOFPAGE must be on its own line!