I need to do the redirect after doing some commands in php I need to load an ajax.
The link you submit to PHP:
href="ajax/deletaPessoaVinculo.php?a=1&c=MEMBR&pb=3&p=vinculo.php?c=MEMBR"
After this I get in the php of the 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 is not returning.
I actually want to delete something, and when I remove I want to reload
on the page.