|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to keep from losing $_POST value
I have a form that a user picks an item they want to read a review on and how many items to list per page. Well the item $_POST['itemName'] and the quantity $_POST['itemsPerPage'] are being lost in the second page of items. I'm using some premade code to allow me let the user scroll page by page. And when the user goes to the second page after submitting the form, both of the values are lost. Is there a way to make them constant? Or a place in the code to put them to keep their memory from being freed?
If it helps and the code for call the next page is here: PHP Code:
Thanks in advance Last edited by yamahabob : September 4th, 2009 at 11:59 PM. |
|
#2
|
|||
|
|||
|
Use sessions.
Add this to the top of your code: PHP Code:
__________________
Sir, a desire of knowledge is the natural feeling of mankind; and every human being, whose mind is not debauched, will be willing to give all that he has to get knowledge. |
|
#3
|
|||
|
|||
|
Wow. I just found your response. I waited and never got one, and my email didn't notify me. This worked perfect!
Thanks so much! |
|
#4
|
|||
|
|||
|
Glad to hear.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > How to keep from loosing $_POST value |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|