Passing data type unique id via a link from one page to another

I have a list of events with an index, event date, and event name. I have a link right after event name called “Add Task”. This link goes to the Add Task form page, but it needs to know the unique event id in order to associate the task to a particular event. I was thinking of using a URL parameter, but not sure if that is the best way to pass that type of data. Once the user lands on the Add Task form, I need to save the Event ID into the Task DB so that I can track which tasks are associated to an event. Any help and guidance is appreciated.