Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 about the Monastery: (8)
As of 2014-12-20 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (98 votes), past polls