I have created the link called my node, but I cannot pass the value from current page to mynode page via this link. Is it possible to pass this value to global variable of mynode page?

<a href=?q=mynode> mynode </a>

Thanks in advance

Comments

alim418’s picture

http://yoursite.com/your-page-path/mynode

arg(0) = you-page-path
arg(1) = mynode

fon_ame’s picture

I want something like

<a href=?q=mynode> mynode </a> // when users click on this link will pass value 'id=1' to mynode page 
<a href=?q=mynode> mynode </a> // when users click on this link will pass value 'id=2' to mynode page 
<a href=?q=mynode> mynode </a> // when users click on this link will pass value 'id=3' to mynode page 
alim418’s picture

<a href=?q=mynode&id=1> mynode</a>

and you should be able to do $_GET['id'] to get the value

fon_ame’s picture

This is what i am looking for, thank you so much.