Jump to content

Can't get GET to work


Skippy le Grand Gourou
 Share

Recommended Posts

Hi,

I'm probably missing something trivial, but for some reason I can't retrieve GET input values.

Consider the following simple piece of code, named whatever.php :

<?php

        echo $input->get->id;

        echo " -- ";

        echo $_GET['id'];

?>

I make it a template, then a visible page, then I try to access http://example.com/whatever/?id=foobar but it only prints " -- " (i.e. the second echo line).

I tried to make "id" a field of the template but it didn't help.

What am I doing wrong ?  Is it related to rewrite rules ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...