Error with PHP Include()?

Cully W

New member
I have this for code on var.php


<html><head><title>
<?php
$gt= 3;
echo $gt; ?>
</title>
</head>


and I have this for code on index.php


<html>
<head><title>
<?php
include 'var.php';
echo $gt;
?>
</title>
</head>


but whenever I open index.php, it shows <html><head><title>3
It also shows the number right at the top of the body of index.php
What goes on?
I had the rest of the tags in there for decoration, but I guess I really don't need them. I took them out and it works like a charm. Thank you!
 
Back
Top