Dear All,
I have two .php page. In my main php I call the other via the require_once method. Then in the main .php I declare and assigne variable and I tried to read the value in the require_once php I am not able to see the value. How can I achieve this ? Thank you.
newbie14
0
Posting Pro
Recommended Answers
Jump to PostYou should be able to use a variable from the main program unless you are using Functions and the variable was defined in / being used in a Function without being defined as Global. If that is not it, then you need to post some code.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.