in reply to Re: CGI SCRIPT ITSELF IS DISPLAYED
in thread CGI SCRIPT ITSELF IS DISPLAYED
Some information, My html file is in var/www/html folder. CGI script is under usr/lib/cgi-bin (i use this path to the configuration file for cgi configuration).
<!DOCTYPE html> <html> <body> <h3> <center>TRANSCRIPTION FACTOR FAMILY</center></h3> <form action="http://localhost/cgi-bin/test.cgi" method="GET"> <input type="submit" value="NAC"> </form> </body> </html>
#!/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>TRANSCRIPTION FACTOR DATABASE </title> </head> <body> <img src="file:///var/www/html/index.jpeg" height="42 +0" width="420"> <br><br><br><br><br> <center><table border=0> <tr><td> </td></tr> </table></center> </body> </html> OUTPUT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CGI SCRIPT ITSELF IS DISPLAYED
by Corion (Patriarch) on Sep 26, 2014 at 07:59 UTC | |
|
Re^3: CGI SCRIPT ITSELF IS DISPLAYED
by Anonymous Monk on Sep 26, 2014 at 08:06 UTC |