Jump to content

Send hidden values


zintani

Recommended Posts

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)

Link to comment
https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1264918
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/246307-send-hidden-values/#findComment-1264953
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.