On a Drupal site, PHP code is enabled for Page body content. How can I get the argument and its value in PHP code? For example, I\'d like to get ref and 3
ref
3
You can use drupal_get_query_parameters() as follows:
$params = drupal_get_query_parameters(); if (isset($params['ref']) && is_numeric($params['ref'])) { var_dump(check_plain($params['ref'])); }