Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Tuesday, June 18 2013 @ 09:18 PM EDT


 Forum Index > Extensions > Cool Hacks New Topic Post Reply
 Centerblock of Statics, global vars
   
Anonymous: tokyoahead
 07/21/04 03:22AM (Read 1364 times)  



Hi,

I have been writing a php-driven static page in the style of:
------------

$setting1="x";

$action=$_POST['action'];
if ($action=="z") {function1();} else {function2();}

function function1()
{
global $setting1;

etc etc

------------------

Now the function works perfectly as a stati page. When I switch this static page to become a centerblock however, the global variables dont work anymore!

Someone can tell me why?

thanks

 
 Quote
Content generated in: 0.12 seconds
New Topic Post Reply

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