sfid results.php

Forums › Forums › Search & Filter Pro › sfid results.php

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #194747

    Is there a way to get the sfid in results.php (so that I can basically do an if/else to change some display text)?

    Trevor
    #194804

    You can either make a results.php file per form. So, if a form is ID # 1234 then you name the results.php for it 1234.php.

    Or you can use PHP, like this (I think):

    <?php
    global $searchandfilter;
    
    if ( $searchandfilter->active_sfid() == 1234) {
      // do this
    } else {
      // do that
    }
    
    ?>
Viewing 2 posts – 1 through 2 (of 2 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.