PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old May 23rd, 2002, 03:19 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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'];

Reply With Quote
  #2  
Old May 23rd, 2002, 03:24 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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......

Reply With Quote
  #3  
Old May 23rd, 2002, 03:43 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: hash arrays in session???

Did somebody told you that you are genius ? No, that i'm first )
thanks )

Reply With Quote
  #4  
Old May 24th, 2002, 04:42 AM
Smiley Smiley is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Australia
Posts: 30 Smiley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #5  
Old May 24th, 2002, 07:20 PM
nego nego is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cracow, POland
Posts: 29 nego User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m
Reputation Power: 0
RE: hash arrays in session???

what doesn't mean "serialize" ?could you write the code for "serialize" ? tx

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > hash arrays in session???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway