[FX.php List] Creating Reusable Code - Part II

DC dan.cynosure at dbmscan.com
Sun Sep 10 15:19:37 MDT 2006


On Sep 10, 2006, at 3:07 AM, Jonathan Schwartz wrote:

> If I'm on the right track, I guess that I need to work out how to  
> keep that variable set for the duration of the user session on that  
> page, until the next array set is required.

It looks to me like you're on the right track.

Try testing whether the session variable is set before you set it.  
That will tell you if it is a new request to the search page or a  
subsequent modification of search terms.

http://www.php.net/isset

The PHP manual is great. Two thing I always do when I'm learning  
about a new function I've never used before:

1) Check the manual for other related functions
2) Read the user comments and see if there are any examples of what I  
am trying to do with the function. There usually are.

Cheers,
dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060910/65090fe5/attachment-0001.html


More information about the FX.php_List mailing list