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

Black Knight’s picture

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.