1
I need to make the redirect after doing some commands in php need to load an ajax.
The link that sends to PHP page:
href="ajax/deletaPessoaVinculo.php?a=1&c=MEMBR&pb=3&p=vinculo.php?c=MEMBR"
After this I get in php from deletaPessoaVinculo.php
$w_COD_IDENT_VINCU = ( isset($_GET['c']) ? $_GET['c'] : "" );
$w_COD_IDENT_PESSO = ( isset($_GET['pb']) ? $_GET['pb'] : "" );
$w_acao = ( isset($_GET['a']) ? $_GET['a'] : "" );
$w_pagina = ( isset($_GET['p']) ? $_GET['p'] : '');
I do what I need to do on the page and at the end I do:
header('Location: ajax/'. $w_pagina);
But it’s not returning.
Actually I want to delete something, and while removing want from one reload
on the page.
In the browser console, when you make this request, is it being redirected? I believe, that it does the
redirect
in the ajax request you made, I advise you to use some feedback instead of theredirect
and depending on that return you do the re-load through thejavascript
– Jeferson Assis