I have two pages, where one is the .js
which makes the ajax call to a routine in PHP to validate a user: link
Another page in PHP that is the call of this previous routine where I will validate the user by his login and password to send it to the rest of the site: link
On line 23 and 24 I make a insert
in a log table, however, when I do this, I have the JSON return to the page that called this routine; on page .js
this PHP return comes right, but on line 23 we have a redirect to index_adm.php
, but jQuery is not doing it.
When I comment on line 23 and 24 (that is, insert
in the log table in link ) redirection works fine. Only when I insist on doing this insert
does it not work. I do not understand why.