Are you executing the script or parsing it?
If you execute it the variables will only be accessible in the child shell, _not_ the shell you executed the script. If you parse the script the variables are accessible in the parent (mother) shell.
Parsing: . file (there's a space between the dot and the file)
Hope this helps.