Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

calling a cgi file from shtml

by rjsaulakh (Beadle)
on Dec 17, 2005 at 09:26 UTC ( #517454=perlquestion: print w/ replies, xml ) Need Help??
rjsaulakh has asked for the wisdom of the Perl Monks concerning the following question:

<p. i ahve a cgi file in which i have the following code

#!/usr/bin/perl use CGI; my $cgi=new CGI; print $cgi->header; $region = $cgi->param("region"); print <<HERE1; <body> <table WIDTH=730 width="" border="0" cellpadding="0 +" cellspacing="0"> <tr><td valign="top" class="bodyconte +nt-txt"><p>cant excute the cgi what to do please help. </p></td></tr> <tr><td valign="top" class="bodycontent-txt"><p>c +ant ee xcute the cgi please help</p></td></tr> <tr><td valign="top" class="bodycontent-txt"><p>c +ant excute the cgi what to do please help. cant excute the cgi what t +o do please help. </p></td></tr> <tr><td valign="top" class="bodycontent-txt"><p> +cant excute the cgi what to do please help. cant excute the cgi what +to do please help. cant excute the cgi what to do please help. </p></ +td></tr> </table> </BODY> HERE1

and another shtml file in which i am executing the cgi file the content of the shtml file is

my cgi file is working fine but when i try to display the shtml file it gives me blank . i want to display the text which is displayed when i directly execute the cgi file please help.

Comment on calling a cgi file from shtml
Download Code
Re: calling a cgi file from shtml
by rjsaulakh (Beadle) on Dec 17, 2005 at 09:40 UTC

    was missing a "#" before the exec statement in the sthml file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://517454]
Approved by neversaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-04 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls