By pommac on
Hi!
I'm working on a page that needs a GET variable. I've got it working like this, no problem:
http://mysite/page?argument=20
But I'd really like it to work like this instead:
http://mysite/page/argument/20
...or even better, like this:
http://mysite/page/20
Is this possible? I suppose what I want is some way of wildcarding the alias, saying the alias is /page and everything from then on should be used as an argument. Anyone know if this is possible?
Comments
You can write module which
You can write module which will display page which receives parameters in URL, following this example:
http://cvs.drupal.org/viewcvs/drupal/contributions/docs/developer/exampl...
arg
You are probably looking for http://api.drupal.org/api/HEAD/function/arg -- see where it's used in some contrib modules and you'll get a feel for what it does.
Marc
-------
http://www.funnymonkey.com
Tools for Teachers