Hi here's my problem:
First off i have an array with simple information like Name, Age, Gender for now;
$test = array(
"name" => "Test Name",
"gender" => "Male",
"age" => 100
);
Now i have a table that displays this information:
<table width="100%" cellpadding="1" cellspacing="0" class="content">
<tr><td><img src=images/navarrow.gif'>Name: <?php print $page['name']; ?></td></tr>
<tr><td><img src='images/navarrow.gif'>Age: <?php print $page['age']; ?></td></tr>
<tr><td><img src='images/navarrow.gif'>Gender: <?php print $page['gender']; ?></td></tr>
</table>
Now lets say someone runs this script with the url:
script.php?page=test
It should run the Name, Age and Gender information into the table because $page = test and this in turn causes name to be Test, age to be 100, and gender to be Male, or at least that's what id like it to do. But when i run this script, all i get is:
Name: t
Gender: t
Age: t
it just basically prints out the first letter of what ?page= is.
Am i doing something wrong here and if i am, can someone plzzz help me.. Help will be appreciated. Thanks.