We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34109
    • 119 Posts
    Not sure if this is even possible, but...

    I'd like to be able to prepopulate the where condition in a MIGXDB cmp from the querystring. The table I'll be querying is likely to have thousands of records and I'll only ever need to show a filtered view of this. The idea is that I'd add a parameter to the manager url for the cmp which would be passed to a custom getlist processor. The only problem is that requests are handled through connector.php so the querystring isn't easily accessible.

    Any ideas anyone?

    Thanks!

    Chris
      Studio Republic
      http://www.studiorepublic.com
      0845 226 3205
      @christodhunter
      • 34109
      • 119 Posts
      Sussed it. Added a few lines to connector.php and the parameter is passed through to me processor:

      $referrer= $_SERVER['HTTP_REFERER'];
      $referrer = str_replace("&","&",$referrer);
      parse_str($referrer);
      if(isset($bookingid)) $_POST['bookingid']=$bookingid;
      


      The first part of the str_replace command is & a m p ; but it's going to be parsed on here
        Studio Republic
        http://www.studiorepublic.com
        0845 226 3205
        @christodhunter