Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    need help with perl

    im trying to make a form using cgi and perl. when i do something like
    <h1>Hello there!</h1>

    #! /usr/bin/perl
    print "Content-type: text/html\n\n";
    print "<html><body><h1>Hello World!";
    print "</h1></body></html>\n";

    i does work i see the results of even if i use .c it works too
    but when i try to do a form like this:<html><head><title>Guestbook Form</title></head>

    <form action="post.cgi" method="POST">
    Your Name: <input type="text" name="name"><br>
    Email Address: <input type="text" name="email"><br>
    <textarea name="comments" rows="5"
    <input type="submit" value="Send">


    and perl code:
    #!/usr/bin/perl -wT
    use CGI qw(:standard);
    use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    use strict;

    print header;
    print start_html("Thank You");
    print h2("Thank You");

    my %form;
    foreach my $p (param()) {
    $form{$p} = param($p);
    print "$p = $form{$p}<br>\n";
    print end_html;
    it gives me an 500 error page why is that how can i fix this error
    what im trying to do is when a user enter text in the form i want to user to see the results just like when i post some here. but this is a lil over my head, can some1 help me

  2. #2

    how to perl

    any linux pro in here

  3. #3


    is this forums for windows or linux cause look like there no linux pro here, i guess this is for windows

  4. $spacer_open
  5. #4


    any linux pro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts