Fenhopi Posted May 18, 2010 Share Posted May 18, 2010 Hey, I have a variable that's defined in one file, and I need to use it in another file, is there any easy way to retrieve it? I tried making a form, storing it in a label as a value, then retrieving it with the other file through $POST. This did not work unless I have a textbox, but I don't want the user to be able to edit it. Please help. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted May 18, 2010 Share Posted May 18, 2010 You can use an input of type "hidden" or "disabled". The first will not show on the form, the second will but won't be changeable. You can also pass the value via sessions. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.