Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 19th, 2006, 2:08 PM   #1
k4pil
Programmer
 
Join Date: Aug 2005
Location: Leeds - UK
Posts: 69
Rep Power: 4 k4pil is on a distinguished road
Passing variables using sessions

Hi there.

I have the code
foreach($_POST['CB'] as $k => $v)
    {
    echo "$_POST[$prodQuant]<br>";
    }//foreach

The array contain values passed through a form on a different page.

is it possible to pass these values as session variables

some thing like
$_SESSION['$_POST[$prodQuant]']
and then to access this on the same page using something like
$id[] = $_SESSION['$_POST[$prodQuant]'];

Eventually i need the data to be in the $id array foir example.

Anyone have any suggestions??
k4pil is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC