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.
Changing code passed on by url
Moderator: General Moderators
-
grahambucknall
- Forum Newbie
- Posts: 6
- Joined: Thu Feb 24, 2011 8:05 am
- spamyboy
- Forum Contributor
- Posts: 266
- Joined: Sun Nov 06, 2005 11:29 am
- Location: Lithuania, vilnius
Re: Changing code passed on by url
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 ?
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-
grahambucknall
- Forum Newbie
- Posts: 6
- Joined: Thu Feb 24, 2011 8:05 am
Re: Changing code passed on by url
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!