Hi all.
I have a problem that I’m working on that I have posted on here before, but I’d like to attack this from another angle.
I need to keep two pieces of data, that will be two different variables that never change, secure and unviewable. I’m wondering if what I’m about to suggest will work and if anyone has any more specific information for making such an implementation.
The thought:
I’d like to have the main page, a php form, be able to post to a script on another server (I have all this information) but in order for my main page to access this other script, it must pass login information (the two pieces of data) to the other server.
I’m wondering if a good method of accomplishing this would be to:
Have the main page
Have a second php page that will only contain these two variables (I’m thinking global variables??)
Have the main page “include” the second page to access the data those variables hold without allowing everyone else to view it.
Is this a viable solution to keep data hidden but remain accessible. If so, is my thinking correct on making them globals (they just have to be defined as globals on both pages to access them correct?)? etc.
Any thoughts/suggestions would be greatly appreciated!