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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.