Hellow Monks,
I saw some posts similar to my following doubt. But i couldnt figure it out. So kindly help me (am not an expert).
I have a front end html (with buttons) and a backend PERL cgi script. The code is correct and tested in another windows system.
Now, i placed two files in www folder (under var) in Ubuntu 14.04. But when i clcik the button, instead of runing the cgi, script itself is displayed. Someone kindly help me what changes to be made (in a simple way).
I also attach the contens of front end html and backend test.cgi
Front end.html
<html>
<body>
<h3> <center>TRANSCRIPTION FACTOR FAMILY</center></h3>
<form action="/var/www/test.cgi" method="GET">
<input type="submit" value="ABC">
</form>
</body>
</html>
test.cgi,
#!/usr/bin/perl
use CGI;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
$q=new CGI;
print "Content-type: text/html\n\n";
@field=$q->param();
$name=$q->param("value");
print<<"OUTPUT";
<html>
<head>
<title> FAMILY SELECTION </title> </head>
+
<body>
<img src="/var/www/bb.jpg" size=100">
<br><br><br><br><br>
<center><table border=0>
<tr><td>
</td></tr>
</table></center>
</body>
</html>
OUTPUT
Thanks,
anikng
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.