in reply to Re: Image doesnot display in perl cgi when moved code from linux to windows
in thread Image doesnot display in perl cgi when moved code from linux to windows
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Image doesnot display in perl cgi when moved code from linux to windows
by roboticus (Chancellor) on Jul 23, 2015 at 10:46 UTC | |
|
Re^3: Image doesnot display in perl cgi when moved code from linux to windows
by RichardK (Parson) on Jul 23, 2015 at 10:00 UTC | |
|
Re^3: Image doesnot display in perl cgi when moved code from linux to windows
by MidLifeXis (Monsignor) on Jul 23, 2015 at 12:38 UTC |