Hi,

how do i get a url argument in php?
i want to get it in a computed field of cck
I tried $arg, but he dont get it by this

greets,
tom

Comments

Oblivious-1’s picture

Arguments passed to PHP via a URL are stored in $_GET array, e.g., $_GET['varname']. Always validate and sanitize user input.

--
Erik

Oblivious-1’s picture

To get a value passed to Drupal via a URL, you'll usually want to use Drupal function arg(). See, http://api.drupal.org/api/function/arg.
--
Erik