General Question

How do I use PHP to get the node ID for a block?
I am using drupal and trying to write a block using PHP. The block would figure out the node ID for a page (ie: for http://site.com/node/14 it would return “14”) and then put that into another link I’m trying to make using that same number (ie: http://site.com/forward/14). Anyone know how I’d go about doing this?
Observing members:
0
Composing members:
0


1 Answer
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.
Have a question?
Ask Fluther!