<---test.php----------
<?
require ('functions.php');
$content ="testing";
test()
?>
=====================
<----functions.php----
function test () {
echo "<table width=98% border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td colspan=3 bgcolor=#999999> <h1 align=center><font face=Arial, Helvetica, sans-serif>A Test</font></h1></td>
</tr>
<tr>
<td width=16% bgcolor=#999999> </td>
<td width=66%> $content </td>
<td width=18% bgcolor=#999999> </td>
</tr>
<tr>
<td colspan=3 bgcolor=#999999> </td>
</tr>
</table>" ;
}
---test.php---------->
----functions.php---->
My problem is that the $content variable doesn work right, someone told me it has something to do with enviroment variables... but after searching for houres i didn't find any good way how to do this.
So can anyone help me
// a PHP newbie