Convertir codigo de JS a PHP
Publicado por EUNICE (29 intervenciones) el 26/02/2019 12:36:38
Hola,
Tengo este codigo que usa JS y PHP y me gustaria pasarlo todo a PHP... pero nose si es posible
Tengo este codigo que usa JS y PHP y me gustaria pasarlo todo a PHP... pero nose si es posible
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script>
function confirmCancelar()
{
var agree=confirm("Esta seguro que desea BORRAR la venta?");
if (agree)
return true ;
else
return false ;
}
</script>
<?php
if (isset($_GET["cancelar"])) {
echo "cancelar";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<a href='prueba.php?cancelar=1' onclick='return confirmCancelar()'><img src='img/<?php print ($vista_movil) ? "img_movil/" : "" ?>borrarventa.png'/></a>
</body>
</html>
Valora esta pregunta


0