I have written the following CGI program. It supposed to allow a user to click on the picture, and the user is shown a picture in a bigger size. However, it goes to cgi directory instead of html, i.e.,
instead of
in which the program is located. When I wrote the same statement in just HTML, it worked. Please help. Thanks.
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
$query = new CGI;
$query->header;
print "<html>\n<head>\n<TITLE></TITLE>\n";
print "</HEAD>\n<BODY>\n";
print "<A HREF=\"picture.html\"><img src=\"/images/car.jpg\" width=\"100\" height=\"100\" align=\"left\" vspace=\"5\" hspace=\"5\" alt=\"car.jpg\"></A>\n";
instead of
in which the program is located. When I wrote the same statement in just HTML, it worked. Please help. Thanks.
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
$query = new CGI;
$query->header;
print "<html>\n<head>\n<TITLE></TITLE>\n";
print "</HEAD>\n<BODY>\n";
print "<A HREF=\"picture.html\"><img src=\"/images/car.jpg\" width=\"100\" height=\"100\" align=\"left\" vspace=\"5\" hspace=\"5\" alt=\"car.jpg\"></A>\n";