Código HTML:
Confirm Form Resubmission This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed. Press the reload button to resubmit the data needed to load the page.
Código PHP:
$sql = "SELECT cod, nom FROM sc_ctacte WHERE cruza = ''";
$sth = $BD->prepare($sql);
$sth->execute();
while ($fila = $sth->fetch(PDO::FETCH_ASSOC)) {
$prevista[] = new PreVistaVO($fila['cod'], $fila['nom']);
}
$tpl = new Plantilla();
$tpl->assign('lista', $prevista);
$tpl->assign('mensaje', $mensaje);
$tpl->display('mostrar.tpl.php');