aoconnor
12-07-2004, 10:28 AM
I have a question:
I am trying to construct an index page that dynamically displays its contents. I have done this repeatedly with webdna, but am trouble doing it with php.
I want to:
if (myvariable is blank) then
show the index content by default
else
show 'myvariable'.inc
endif
The problem is, when a visitor lands on the index page, 'myvariable' is not declared. So what can I do to overcome this.
I am trying to construct an index page that dynamically displays its contents. I have done this repeatedly with webdna, but am trouble doing it with php.
I want to:
if (myvariable is blank) then
show the index content by default
else
show 'myvariable'.inc
endif
The problem is, when a visitor lands on the index page, 'myvariable' is not declared. So what can I do to overcome this.
