Changing code passed on by url

Hi

I use Dreamweaver to do a lot of my work on a php/mysql database. I have two tables - applications and contacts and they are linked by the id appid. When I view a page with all of the application and contact details the url contains the appid as a number at the end (eg …/Summary.php?appid=639)
When I want to edit one of the contacts I go to the edit page but this is identified by a contact id so that url looks like:
…/EditContact.php?contactid=32
When I update the contact’s details I would like to return to the summary page but can’t as the url gets muddled between the two different ids so I end up at a page with no info on it.

How can I get round this?

I’m sorry my explanation isn’t very clear but any help is much appreciated.

Hey.

Why not pass on the AppId in the URL for editing the contact too?

EditContact.php?ContactId=123&AppId=456

Anthony.

Hi

That seems to work fine. So easy when you know how!

Thank you.