Welcome Guest, Not a member yet? Register   Sign In
return to the current URL
#1

[eluser]simonij[/eluser]
Hello i want to redirect to the current URL then a user login how can i do that?

i have try

$currentURL = current_url();

redirect($currentURL);

but it dont work


hope some one can help me out Smile

best regards Simon
#2

[eluser]stuffradio[/eluser]
try
Code:
redirect(current_url());
#3

[eluser]Cristian Gilè[/eluser]
Code:
redirect(uri_string(),'refresh');
EDIT: to use redirect(), remember to load the URL helper.


Cristian Gilè
#4

[eluser]Phil Sturgeon[/eluser]
Quote:but it dont work

What happened?
#5

[eluser]simonij[/eluser]
it dont work :/
#6

[eluser]Phil Sturgeon[/eluser]
[quote author="simonij" date="1295028401"]it dont work :/[/quote]

"It doesn't work" does not help us at all, therefore we cannot help you.

How to Report Bugs Effectively




Theme © iAndrew 2016 - Forum software by © MyBB