We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
PHP help: echo if exists
I have the following heading code on my results page for a filterable form.
<h1 class="smallh1">Search results: <span class="pink"><?php echo perch_get('type'); ?></span> <span class="pink"><?php echo perch_get('location'); ?></span> </h1>
What code would I use If the user does not select anything in the 'type' select box. Ideally I would want it to echo "Any type in Location name"
How can I make it echo the words Any Type if nothing is selected .
Any help is appreciated.
Want to reply to this thread?Login with Perch