Hide if search results

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 2, 2018   (RSS)

By leo - February 2, 2018

Hi Tim,

The answer is yes, you can let the search form submit a checker to determine if the form is submitted. Change your submit button to this:

<button class="btn btn-outline-info my-2 my-sm-0" type="submit" name="searchFormSubmitted" value="1">Search</button>

And your if statement will be:

<?php if(!@$_REQUEST['searchFormSubmitted']): ?>

Let me know if you have any questions!

Leo - PHP Programmer (in training)
interactivetools.com

By Toledoh - February 2, 2018

Perfect! 

Thanks

Cheers,

Tim (toledoh.com.au)