Welcome to Geeklog, Anonymous Tuesday, October 15 2024 @ 12:27 am EDT
Geeklog Forums
Centerblock of Statics, global vars
tokyoahead
Anonymous
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
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
7
7
Quote
All times are EDT. The time is now 12:27 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