How can pass id node to webform?

I try put these link in item node:

<a href="www.example.com/?q=node/24?id=<?php print $node->nid; ?>">webform</a>

Don't work
Any suggestion?

Comments

I hope this helps

I'm not real familiar with webform, but the formatting of the url you posted is incorrect. What you are attempting should be:

<a href="http://www.example.com/?q=node/24&id=<?php print $node->nid; ?>">webform</a>

Or you could use:

<a href="http://www.example.com/?q=node/24/<?php print $node->nid; ?>">webform</a>

and get the nid with arg(2).

Sorry if this is unhelpful. I am not sure what you are trying to do and am not that familiar with webform.

Results with <?php print $node->nid; ?>

Hi, I've been trying to get this to work for a while now...and although I have no issues passing normal foo=bar, the print php code just passes the code and not the reference.

For example, when I add the link "www.example.com/form/inquiry-form?project=

<?php
print $node->title;
?>
", %get[project] simply returns "
<?php
print $node->title;
?>
".

I can only guess this has something to do with saving the link in Full HTML vs PHP Code, etc. in the node field, but I can't yet figure it out. Any help appreciated!

There is a similar

There is a similar conversation here: http://drupal.org/node/254543 this might help

C

nobody click here