Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Using drupal 7, I have a webform as a block. Set to show on a certain content type with a hidden field returning the token value %get[q] to let the admins know from which page the form was submitted from. Unfortunately it has intermittent errors that I've not been able to duplicate. Is there a better way to capture the url?

share|improve this question
add comment

2 Answers 2

What about $_SERVER['REQUEST_URI']?

share|improve this answer
    
using - %server[REQUEST_URI] - helped some. the hidden element now comes in with the cleanURL and not the node number but the issue remains. it keeps coming up with - (domain)/file/ajax/submitted/(field name)/form-(and what looks like long string of random characters) @beth –  cuan Dec 27 '12 at 14:06
    
That sounds like the webform token, which all secure forms should have. What are the errors with GET['q']? –  betherwisser Dec 27 '12 at 15:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.