I'm working with drupal. I have this page something.com/node/13. Inside I have this script
<?php
$door = $_GET["variable"];
echo $door;
?>
When I open the URL like this something.com/node/13?variable=1231 I get the following error:
Error message
Notice: Undefined index: variable in eval() (line 2 of /var/www/html/modules/php/php.module(74) : eval()'d code).
and no output. Any ideas what I might be doing wrong?
eval? What is the whole code?$door = isset($_GET["variable"]) ? $_GET["variable"] : '';Did you call the URL likesomething.com/node/13?variable=x? If you did, then Drupal is unsetting values in the $_GET array and presumably moving them somewhere else.[QSA]flag in the RewriteRules, so the?variable=xxisn't carried on to the target script.eval()in order to run the PHP code that the user has added to that particular page in the CMS.