URL I am accesing is http://localhost/cgi-bin/index.cgi
the code for this page is
#!perl use DBI; use CGI::Carp "fatalsToBrowser"; use CGI; my $q = CGI->new(); print $q->header; print $q->img ({ -src => "C:/Apache24/images/tree.jpeg", -align=>"CENT +ER" }); print $q->start_html; print $q->start_form( -method=>"get" , -action => "form_1.cgi" , ); print $q->div( {-align=> 'center' , }, $q->br,$q->br,$q->submit ( - +value=> 'Add New Employee' , -name => 'action' ,) ); print $q->end_form; print $q->start_form( -method=>"post" , -action => "db_connect.cgi" , +); print $q->div( {-align=> 'center' , }, $q->br,$q->br,$q->submit ( - +value=> 'View All Employees' , -name => 'action' ,) ); print $q->end_form; print $q->start_form( -method=>"get" , -action => "db_insert.cgi" , ); print $q->div( {-align=> 'center' , }, $q->br,$q->br,$q->submit ( - +value=> 'Delete Employee' , -name => 'action' ,) ); print $q->end_form; print $q->end_html;
Even if i give full image path , as given in above source code, it doesnt show up. while I can access same via command prompt
In reply to Re^2: Image doesnot display in perl cgi when moved code from linux to windows
by saurabh220837
in thread Image doesnot display in perl cgi when moved code from linux to windows
by saurabh220837
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |