Show clear link only if search is in effect?
I'm still using this technique to clear search results. I'd like to hide the button to clear the search results and only show it if the user has actually searched (as this is the results page with data assist, most of the time users just click in to view the full recordset, in which case having a "clear search" button is unnecessary and confusing).
So would one go about constructing a 'show if session variable is set' in PHP?