Forum Moderators: coopster

Message Too Old, No Replies

back button to previous multi purpose page

         

Sarah Atkinson

4:52 pm on May 9, 2005 (gmt 0)

10+ Year Member



I have a group of content managment pages.

the index page passes paramiters tot he view page to telling it what to view. then the user can go to the delete page to delete on of the items viewed. from the delete page I want to the user to go back to the viewpage using the same paremiters. Is there a simple way to just do a back link or do i need to pass the paremiters to the delete page then back again?

I hope this is clear
Sarah

jatar_k

5:08 pm on May 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



grab the params passed to the page in question and build a new link for them that has those same parameters in the url

Sarah Atkinson

5:34 pm on May 9, 2005 (gmt 0)

10+ Year Member



would it be better if these params were global. OR might this be a good place to use cookies? I have yet to learn either. but it is alway a good time to learn, right?

jatar_k

5:38 pm on May 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



true but if you have the vars available to that script then just spit them back out in a link.

much more straight forward.

Don't worry, you'll have lots of time to over complicate things but try to keep em simple when you can ;)

Sarah Atkinson

5:54 pm on May 9, 2005 (gmt 0)

10+ Year Member



Well the main one would be the $fromwhere variable--the one that tells wich form the user is currently working with. One thing if it was a global I guess I could have a spot wich would constantly tell the user which table she was working on.

Sarah Atkinson

6:13 pm on May 9, 2005 (gmt 0)

10+ Year Member



would passing the value of the table name in the page url be a security problem? If so would it be better to be stored elsewhere?