Bluehost.com Web Hosting $6.95

Re: [PHP] Store array as Session Variable

This is a discussion on Re: [PHP] Store array as Session Variable within the PHP General forums, part of the PHP Programming Forums category; Thanks John, I used the $_GET['name'] on the next page to access the selection. http://psg.local/~psgarcha/CRM/...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2003
Pushpinder Singh Garcha
 
Posts: n/a
Default Re: [PHP] Store array as Session Variable

Thanks John,

I used the $_GET['name'] on the next page to access the
selection.

http://psg.local/~psgarcha/CRM/full-....php?name=jack
http://psg.local/~psgarcha/CRM/full-...e.php?name=tim
http://psg.local/~psgarcha/CRM/full-....php?name=mary
http://psg.local/~psgarcha/CRM/full-...php?name=evian

My full-profile.php page first checks for a session before displaying
the results.

However if I decided to use the sessions approach how would I go about
it ? I am just curious to find out why $_SESSION['company_name'] =
$company_name; duz not werk for me !

Thanks in advance
--Pushpinder






On Monday, July 28, 2003, at 04:14 PM, CPT John W. Holmes wrote:

>> I am able to see the contents of the $company_name array. The
>> next
>> part involves storing this as a session variable.
>>
>> I am trying to link this page to another search page using the <a
>> href=\"full-profile.php?name=".$row['company']. "\">--Link--</a>

>
> If you're passing the company name in the URL, why are you adding the
> entire
> array to the session? You can just use $_GET['name'] to get the name
> of the
> "company" that was clicked on...
>
> ---John Holmes...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0