Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
Hello
I'm playing with staticpages with enabled php and trying to include some html.
So I put this piece:
Text Formatted Code
print '<table width="100%" border="1">';
print  '<tr>';
print  '<td> </td>';
print  '</tr>';
print  '</table>';
 


and the problem is that this table is displayed above the header.
What am I missing? (GL 1.3.11)
Geeklog Polish Support Team

Status: offline

tomw

Forum User
Full Member
Registered: 08/12/02
Posts: 300
You either need to add the html to a variable and return it or change the php mode of the static page. See Here.

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
You mean like this:
Text Formatted Code

$print = '<table width="100%" border="1">';
$print = '<tr>';
$print = '<td> </td>';
$print = '</tr>';
$print = '</table>';

return $print;
 

Is this right?
Thank you Tom
Geeklog Polish Support Team

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
An update!
Problem solved
Thanks again
Geeklog Polish Support Team