zintani Posted September 2, 2011 Share Posted September 2, 2011 Hello, My question is how to send values over and over without using forms or even hidden forums. I have tried to use sessions but it didn't work out for me. Any suggestions! Quote Link to comment https://forums.phpfreaks.com/topic/246307-send-hidden-values/ Share on other sites More sharing options...
marcus Posted September 2, 2011 Share Posted September 2, 2011 If sessions didn't work for you, you probably didn't do it correctly. Quote Link to comment https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1264916 Share on other sites More sharing options...
flappy_warbucks Posted September 2, 2011 Share Posted September 2, 2011 Hello, My question is how to send values over and over without using forms or even hidden forums. I have tried to use sessions but it didn't work out for me. Any suggestions! Session never worked? i fail to see how: session_start(); $_SESSION['tmp'] = $data; can fail when you call it on the next page like: session_start(); $data = $_SESSION['tmp']; that does work. (despite me not testing it at all) Quote Link to comment https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1264918 Share on other sites More sharing options...
zintani Posted September 3, 2011 Author Share Posted September 3, 2011 Basically what I did is: 1- Entered a value via using html form and php. 2- I used that value to bring up other values from mysql database using select. 3- On the same page I gave the session, one of the extracted values. 4- I wanted this value to be retrieved when I move on to the next page and use it for extracting other values. Number 4 didn't work out for me. Quote Link to comment https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1264953 Share on other sites More sharing options...
flappy_warbucks Posted September 3, 2011 Share Posted September 3, 2011 OK. So where is your code? Quote Link to comment https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1264955 Share on other sites More sharing options...
zintani Posted September 3, 2011 Author Share Posted September 3, 2011 Thank you all, the problem has been solved, just was a small mistake in the punctuation. Quote Link to comment https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1265102 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.