Welcome Guest, Not a member yet? Register   Sign In
Changing URLs from function
#1

[eluser]jsuissa[/eluser]
Throughout my application I use "$this->overview($id);" to return the user to an overview page after whatever functions like delete, create, etc. are completed

The issue is that the URL still reflects the previous action like 'resume/create' or worse 'resume/delete'.

If a user refreshes then it runs the link again.

Is there anyway to generate a URL when I run my overview function? Instead of "$this->overview($id);" should I do something like "redirect"(resume/overview);" instead.

Thanks in advance for your thoughts on this.
#2

[eluser]Aken[/eluser]
You should either redirect the user away from that page, or include some code that checks to see if the action has already been processed and throws an error if it has.
#3

[eluser]jsuissa[/eluser]
Thanks -- makes sense, wasn't sure if there were any alternatives.




Theme © iAndrew 2016 - Forum software by © MyBB