Update a record and back to a specific page
I'm using a simple dreamweaver default script to update a record:
$updateGoTo = "cadastro_cliente.php?id=".$row_rsEditar_Receita['id_cliente'];
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
But it's time to redirect the page to the specified page, the script is not using the id number I want.
The script use the same id of the edit page.
