Re: Store array as Session Variable
| From: | Pushpinder Singh Garcha | Date: | Mon, 28 Jul 2003 20:38:41 +0000 |
| Subject: | Re: Store array as Session Variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157239@lists.php.net to get a copy of this message | ||
Thanks John,
I used the $_GET['name'] on the next page to access the selection.http://psg.local/~psgarcha/CRM/full-profile.php?name=jack http://psg.local/~psgarcha/CRM/full-profile.php?name=tim http://psg.local/~psgarcha/CRM/full-profile.php?name=mary http://psg.local/~psgarcha/CRM/full-profile.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:
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.phpI am able to see the contents of the $company_name array. The nextpart 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>