Howdy,
 
I have a search cgi form that has the following function:
 
sub header
{
        print "Content-type: text/html\n\n";
        print "<?php include(\"mainfile.php\")\;?>\n";
        print "<?php include(\"header.php\")\;?>\n";
        print "<title>Search</title>\n";
}
 
When I use the function though, the web page (source) comes up as:
<?php include("mainfile.php");?>
<?php include("header.php");?>
<title>Search</title>
...data

<?
include("footer.php");
?>
 
What am I doing wrong? Why is it printing the php tags instead of executing them?
 
Clayton Dukes
---------------------------------------------------------------------
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to