|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
hash arrays in session???
how can i use associative arrays in sessions ?
i need to put some items in one array this items came from post variables i tried this way: $HTTP_SESSION_VARS['skladniki'] = array(); $HTTP_SESSION_VARS['skladniki[$HTTP_POST_VARS['d_nazwa_skladnika']]'] = $HTTP_POST_VARS['d_ilosc_skladnika']; |
|
#2
|
|||
|
|||
|
RE: hash arrays in session???
$HTTP_SESSION_VARS['skladniki'][$HTTP_POST_VARS['d_nazwa_skladnika']] = $HTTP_POST_VARS['d_ilosc_skladnika'];
Give that a try...... |
|
#3
|
|||
|
|||
|
RE: hash arrays in session???
Did somebody told you that you are genius ? No, that i'm first
thanks |
|
#4
|
|||
|
|||
|
RE: hash arrays in session???
The other way to do it is to serialize the array first, then unserialize it before you want to read it.
|
|
#5
|
|||
|
|||
|
RE: hash arrays in session???
what doesn't mean "serialize" ?could you write the code for "serialize" ? tx
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > hash arrays in session??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|