<html>
<head>
<title></title>
<script language="JavaScript" type="text/javascript">
function direccionar() {
if (confirm("¿Deseas otro producto?"))
miForm.action="http://127.0.0.1/melgar2.php";
else
miForm.action="http://127.0.0.1/pagomelgar.php";
}
</script>
</head>
<body>
<form name="miForm" action="" method="post" onsubmit="return direccionar()">
<input type="text" name="nombre" size="40" maxlength="256"></br>
<input type="text" name="apellido" size="40" maxlength="256"></br>
<input type="text" name="dni" size="40" maxlength="256"></br>
ETC...</br>
<input type="submit" value="Aceptar">
</form>
</body>
</html>