Page 1 of 1

Changing code passed on by url

Posted: Mon Mar 14, 2011 7:13 am
by grahambucknall
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.

Re: Changing code passed on by url

Posted: Mon Mar 14, 2011 9:59 am
by spamyboy
There is no point asking questions that no one can understand. Try spending more time thinking how to formulate your question if you want to get an answer.

Anyway, do you mean that every time you go from one page to the other, the URI parameters get appended and you and up with something like

Code: Select all

?id=12&id=14&id=16
?

Re: Changing code passed on by url

Posted: Mon Mar 14, 2011 10:07 am
by grahambucknall
Yes I did mean that. It may also interest you to know that some people could understand as I got a reply from another forum which worked fine!