Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:30 am EST

Geeklog Forums

PHP, static pages, and misplaced header


Status: offline

anabavi

Forum User
Newbie
Registered: 06/28/02
Posts: 4
Hey, everyone.I added some PHP -- pure PHP, pretty standard stuff -- as directed by tomw (clap, clap, clap) to a static page and eventually everything was parsed okay. The only problem is that the header (the title of the page) was placed below the entirety of the content.None of my other static pages look like this. The PHP in the code merely calls a function I wrote that concatenates some text.Any ideas on how to solve this?
 Quote

Anonymous

Anonymous
My guess is that your php outputs directly. You need to capture any output in a variable and return it. Then you output will be placed after the header. TomW
 Quote

theonomine

Anonymous
Nope, running it as a function and returning a value does not help whatsoever. Any other super gurus want to give this a whirl?
 Quote

Anonymous

Anonymous
The offending code always helps, otherwise we are just guessing. TomW
 Quote

All times are EST. The time is now 01:30 am.

  • 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