muddywolf   10 #1 Posted October 31, 2021 Hi, I'm trying to add some customization to a wordpress site, and im having trouble working with variables across the php pages.  Does anyone had PHP basics who have give me some pointers? I'll post more details if needed.   Share this post Link to post Share on other sites Share this content via...
Waldo   96 #2 Posted November 1, 2021 (edited) I know a little bit, I've done some Wordpress plugins and stuff with php. What are you trying to do?  Reading your OP though, if you're trying to pass variables between pages; I don't think that's something I've ever done. Edited November 1, 2021 by Waldo Share this post Link to post Share on other sites Share this content via...
muddywolf   10 #3 Posted November 1, 2021 9 hours ago, Waldo said: I know a little bit, I've done some Wordpress plugins and stuff with php. What are you trying to do?  Reading your OP though, if you're trying to pass variables between pages; I don't think that's something I've ever done. Hi Waldo, Thanks for your reply, I think I cracked it through trial and error last night. I have lets say page1.php and page2.php. Page1 had a $test with a value I need on page 2.  I put this into page 1. $_SESSION["testinfo"] = "$test";  Then on page 2 I can retrieve it with this for example echo $_SESSION["testinfo"];   Share this post Link to post Share on other sites Share this content via...
Waldo   96 #4 Posted November 1, 2021 Cool. Best of luck with the rest of your project. Share this post Link to post Share on other sites Share this content via...