This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to passing param in cgi-perl in fedora 20.?

I am using Apache server in Fedora-20. I will try to run perl-cgi program in my local server. But its not working, I have to attached my html program and perl program.

My HTML program:

<html>
<head><title>Demo</title>
</head>
<body>
<form action="/cgi-bin/fam.cgi" method="post">
<input type="text" name="username">
<input type="submit">
</form>
</body>
</html>

It will work properly

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "hello world\n";

But when I was passing parameter, its not working.this program is not working.

#!usr/bin/perl -wT 
use CGI;
my $username = param('username');
print header;
print start_html("Perl page");
print h2("hello $username");
print end_html;

What is my mistake, I want to install any modules. I already installed cgi module. Suggest me for any solution.

fedora html cgi perl

Hello Krithi.S!

We believe that this post does not fit the main topic of this site.

This is not a question about bioinformatics.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.