Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update and redirect question

Status
Not open for further replies.

am7555

Technical User
Mar 6, 2007
27
CA
Hi Guys,

I have a page with a list of Newsletter Issues each one with different value. Each item on that list links to a page that based on each id, show the articles for each issue. each article title links to an Edit page with an Update form. The update works. My problem is:

Once the update has occurred then, I want to go back to the list of articles to edit another article. but I can't since the Newsletter Id is gone and don't know how to append it to the redirect part of the Update function.

Example:

Newsletter#1 has an id=9 --->Links to Articles from Newsletter 1. lets say 3 articles with ids ranging from 1 to 3. ---> I click on article 3 with an id=3 then I make a change on the record, press submit and the redirect goes back to the list of articles of Newsletter#1 with Id = 9.

Any help will be much appreciated.

Javier

"I'm a very slow learner and I forget fast"
Grandpa
 
set the newsletter ID(9) into a hidden form field (or a session variable) and then use this value to redirect to the starting page after your update is performed.
All the best!

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Thanks Lebisol. I have already fixed the problem. I neglected to create a Param to append the values to the right link. However, Thanks for your input. :)

Javier
 
nice, glad you got it worked out.
All the best!

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top