I'm using SP2010 and am working with a list.
I'm working with a "Register.aspx" form (In Sharepoint designer) in which I've created a button which is set to re-direct after a save
<input type="button" value="Done" onclick="javascript:{ddwrt:GenFireServerEvent('__commit;__redirect={DispForm.aspx}')}"></input>
which when means when I click the "Done" button the item is saved and the edit form (called, stupidly 'DispForm') is opened.
How can I identify the ID of the newly saved item and pass that to the DispForm? At present it just opens the first item I had created.