Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:15 pm EST

Geeklog Forums

html in staticpages (PHP enabled)


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) Can someone help me
Geeklog Polish Support Team
 Quote

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. Read the FAQ See Here.
 Quote

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
 Quote

Status: offline

Robin

Forum User
Full Member
Registered: 02/15/02
Posts: 725
An update!
Problem solved Very Happy
Thanks again Its a deal - shaking hands
Geeklog Polish Support Team
 Quote

All times are EST. The time is now 02:15 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content