Pass a node reference to a module form I've created a bid module that allows the users to bid on an auction through a node reference. I'm using hook_form_alter() to create the form on the 'create bid' page, and I would like to perform some SQL queries dealing with the referenced node.

How do I load the node reference?
To load a node, use

node_load($nid);


This requires that the node is saved and that you have it's nid.

To give a better answer more details are needed