954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Drupal 7 - $_GET['id'] - Not Pulling Value from URL

Drupal 7

I know there was a previous post, but this is a little more specific to the $_GET function and Drupal.

echo $_GET['id'];
Error Message:
Notice: Undefined index: id in eval()

Just to make sure it worked, I created a test site and copy/pasted my code into a php page outside of Drupal. It worked just as I thought it should.

Echoed id and retrieved mysql data based on ID.

It won't work in my Drupal site though. I know Webform has a built it %get[key], but that wouldn't work either. It worked for %get[username] but it wont retrieve from the URL.

There has to be something small I am missing. Any help would be appreciated.

phpsa
Newbie Poster
1 post since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: