Posted by kenoli on 11/13/06 01:43
What's the best way to pass an array or variable between pages or
scripts on different pages? For instance, I have tried to separate out
my html from my process scripts so that I can edit and stylel the html
pages more easily and so that I can keep all my scripts and functions
together where it is easy to find them.
This results in my creating some variables which I then need to pass to
one of the html pages to provide content for those pages. I'm not sure
what the proper approach is to making these variables accessible on
those pages.
I know making them global variables achieves this goal, though I always
hear, "Don't make variables global!"
--Kenoli
[Back to original message]
|