Login   Register  
PHP Classes

[Problem] Redirection does not work

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Auto form  >  All threads  >  [Problem] Redirection does not work  >  (Un) Subscribe thread alerts  
Subject:[Problem] Redirection does not work
Summary:Problem, redirection does not work.
Author:Mohamed Ziata
Date:2013-03-03 16:29:30
Update:2013-03-07 15:31:30

  1. [Problem] Redirection does not work   Reply  
Picture of Mohamed Ziata
Mohamed Ziata
2013-03-03 16:29:31
Redirection does not wor. I've tried to redirect your example does not work.

For example if you step simple_example.php a variable that contains a url for redirecion not work.

Help plz

  2. Re: [Problem] Redirection does not work   Reply  
Picture of Arturs Sosins
Arturs Sosins
2013-03-04 08:00:53 - In reply to message 1 from Mohamed Ziata
Hello ;),

for redirection to work, there are three things to check:

1) debug must be disabled (or else you won't see debug messages with redirection)
2) headers must not be already sent or else you can't redirect (that is if there is any other code that could do that)
3) if you have onsuccess function set, this function must return true (that was implemented in case, you want to show some message on success)

So in simple_example.php I think that if you disable debug and return true from success method it will redirect correctly ;)

  3. [Resolved] [Problem] Redirection does not work   Reply  
Picture of Mohamed Ziata
Mohamed Ziata
2013-03-07 15:29:34 - In reply to message 2 from Arturs Sosins
Thanks to clear my doubt, the redirecion it works.

PS: Sorry for my limited English. :)