Jump to content
MakeWebGames

Recommended Posts

Posted

Well, this example could demonstrate the need for $h->endpage(), as well as including a footer for your site, which was its initial intention.

However, to answer your question, the function doesn't have to be in the header. It was probably put in the header in the first place to remove any extra clutter in the globals file, as this function is called on every page.

~G7470

Posted

The JS won't run in the php. They both get executed at different times.

This is why I hate procedural php so much. It confuses server logic with client side code...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...