In SharePoint Designer 2007 open the page where an action is needed.
Right click the control the wher you want to start the workflow from… click Form Actions.
Add Custom Action and click Settings and the Workflow Wizard will start.
Click Variables and add a variable called something like MyListItemId.
Finish the workflow and see that the code around your control will be updated somewhat like this:
<a href=”javascript: {ddwrt:GenFireServerEvent(‘__workflowStart={{FA532C23-6F80-4266-868D-1EBC219A7E11},New,{8F0B8599-4B45-421A-A4A2-9BD2817078DE},}’)}”>
//MyControl//
</a>
Here’s what you need to do to pass the variable MyListItemId
<a href=”javascript: {ddwrt:GenFireServerEvent(concat(‘__workflowStart={{FA532C23-6F80-4266-868D-1EBC219A7E11},New,{8F0B8599-4B45-421A-A4A2-9BD2817078DE},MyListItemId=’,@ID, ‘}’))}”>
//MyControl//
</a>
EASY AS PIE