|
-
Aug 17th, 2006, 02:10 AM
#1
Thread Starter
Hyperactive Member
use Array in Page 2, but Declared in Page 1
How is it possible to use an array, say $a in page2 whereas you declared it in page1 ?
Example:
--------
Page 1 -> "main.php"
action="result.php"
$a(2)=array("aa","bb");
Page2 -> "result.php"
I need to use array $a declared in the main page. Is it possible ? Please show me.
-
Aug 17th, 2006, 02:23 AM
#2
Re: use Array in Page 2, but Declared in Page 1
You have to remember that PHP scripts end completely when the output is sent. It's not a persistent running application on the server, it's just executed as needed.
With that in mind, there are some ways of storing persistent data, such as sessions. Research these.
Also, can you please go through all the other threads you have opened and mark them resolved as needed?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|