How do I use global variables such as $_POST????
Here is an example:
Code:$variable = "some text";
function myfunc() {
print $variable; // Does not work
}
DirkFirst Tutorials | Linux Forum
that sould do the trickCode:$variable = "some text";
function myfunc() {
global $variable;
print $variable; // Does not work
}
![]()
I was having the same problem and was about to post a topic.
That works.
Thank you Sidewinder
Last edited by Chan; 07-15-2006 at 10:20 AM.
Thanks, stupid thing is I knew that already......
DirkFirst Tutorials | Linux Forum
Global variables. Just declare it outside of a local method. This is applied for other computer languages too.
But it's not a programming wise in such way.
Last edited by bernkly; 07-15-2006 at 12:26 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks