Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Black Knight on
Hi,
I got php code in static pages working, but I have one problem left.
If I want to pass a variable via link to this page, I cannot access the variable from my code.
Example:
http://.../?q=node/view/133&cvar=test
Neither $cvar nor $q is set in the php code included in the static page.
Pure php scripts outside Drupal work.
Any ideas, how to overcome this problem? Thank you in advance.
(Using PHP 4.3.0, Drupal 4.2.0)
Comments
OK, got it running by looking
OK, got it running by looking in the index.php.
You have to use
$cvar=$_GET["cvar"];
in order to get the variable. Thx anyway.