Hi all,
I've got me a flash form that send the vars to php using the sendAndLoad.
I am trying to get one of the flash vars into a global variable in php and use it all
over the website, whenever I what and in whatever file I need.
All is working well except the global php.
That is the relevant part in php:
global $title;
$title = $_POST['Title'];
Can anyone help?
Thanks,
A.O
globals question ...
Moderator: General Moderators
This should explain a lot:
http://www.tizag.com/phpT/phpsessions.php
http://www.tizag.com/phpT/phpsessions.php
There are 10 types of people in this world, those who understand binary and those who don't
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Global means globally accessible within the current request. That means when a user calls the page about.php, any code you have written that is accessed or built into about.php has access to the global variable. To get values accessible across multiple requests (say on about.php and contact.php) you will either need to use sessions or cookies, both of which can be easily found on a search of the PHP manual.