Welcome to Geeklog, Anonymous Tuesday, March 19 2024 @ 06:46 am EDT

Geeklog Forums

PHP sutom block func


savco

Anonymous
Hey guys,
I have a small code like just echo command and then I have a PHPblock to call my custom function it works great however the output of the echo is not in the block but on the very top of my page.
Am I missing something ? I thought the echo should show in the block...

thanx
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Your function should return it's HTML output as a string to the calling code.
 Quote

savco

Anonymous
Thanks I forgot the Return sometimes i'm so stupid...

plus the title should read : custom php function..
LOL
 Quote

All times are EDT. The time is now 06:46 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