ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Need help getting parameter from url

March 21, 2013 11:45am

Subscribe [1]
  • #1 / Mar 21, 2013 11:45am

    kencheung

    5 posts

    $_GET doesn’t work in EE, so I used the php code below on a test page (http://parr.com/kentest/test/?z=9&t=2), but it didn’t work. Can anyone tell me why the code doesn’t work?

    $z = $this->EE->input->get(‘z’);
    echo “z = ” . $z;

    I also tried adding index.php to the url, but that didn’t work either (http://parr.com/kentest/test/index.php?z=9&t=2). Same result when I enabled $config[‘enable_query_strings’] in the config.php file. Any idea how I can pull a parameter from the URL in EE? Note: the parameters will be generated by a website I don’t have control of.

    Thanks in advance for your help.

  • #2 / Mar 21, 2013 7:19pm

    kencheung

    5 posts

    Anyone figured out how to Get parameters from the URL in EE?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases