Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a html form with 16 fields (https://secure.high-speed-business-club.com//TEMPLATE-order-form-module/?affiliate=0).
What is the best way to capture all of these field values in a single array to be stored as SESSION variables?
In order to do this you will have to post your form data to a second page and assign your session variables there.
Once they're assigned you will be able to access them anywhere on the site as long as that session is active.
W3 School's tutorial
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is it possible for someone (hacker), to somehow get a hold of the value of a session variable that is active.
In the normal course of events, the only information about a session available to the client is the session ID.
For data stored on the server (even if it connected to the session ID) to be visible to the client then you need either:
To expose it explicitly
To have a security vulnerability
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Which is Better And Secure way to Pass the variable through the navigation between the pages?
Three ways can pass the variable through the navigation between the pages:
Put the variable into session in the first page, and get it back from session in the next page.
Put the variable into cookie in the first page, and get it back from the cookie in the next page.
Put the variable into a hidden form field, and get it back from the form in the next page.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am looking to use an array on 2 seperate pages of php. Not using Sessions a simple array, at the end of my page I use a Submit button to pass on to the 2nd page... how can I save the content of my array and print them on the 2nd page?
You can use cookies to save list of array and fetch on the other page. Arrays in cookies. And if you don't need to use that data again you can delete the cookie
You have to use
encoded json(json_encode($array);) format inside the form
after submit you have to retrieve the data by json_decode($array,true);
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have list of checkboxes on web page. What I want is , after deselcting checkbox particular record from database should get deleted accordingly in php.
You'll need to use some javascript to "listen" for the uncheck action on each checkbox. You can then use AJAX to delete the record from the database on the fly, and use jQuery make the record disappear visually from the webpage, all without reloading.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I wonder if you could also send vars without using hidden input, because input hidden is always readable in the code
You can use $_SESSION or continue using hidden inputs with encrypted name and value, then the user has no clue what they are reading.