[eluser]jayrulez[/eluser]
[quote author="SpooF" date="1244445493"]When ever I do any ajax work I like to make it so that the functionality still works if javascript is disabled. Usually I know what a user may be submitting something from, but in one case I dont. So I need some way to transfer that information to the processing function so I know where to redirect the user.
What do you think the best way to do this is?
One way I was thinking was to set a session varible at the end of each function. This will in esence tell me what the last function to exicute would be.[/quote]
are you redirecting with php or javascript?
if js u can use
[removed]history.go(-1),
if php you can send the current url as a hidden field in the form or you may use $_SERVER['HTTP_REFERER'] if it's set. there are probably more ways you can look into