-
Notifications
You must be signed in to change notification settings - Fork 0
/
Botones.php
37 lines (30 loc) · 1.26 KB
/
Botones.php
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
30
31
32
33
34
35
36
37
<!-- __________________________________________________________________________________
| |
| AVTICACIÓN DE SUBMITN MEDITANTE FORM Y VERIFICACIÓN CON PHP |
| |
|__________________________________________________________________________________|
-->
<?php
if(isset($_POST['nombre_del_boton']) && $_POST['nombre_del_boton'] == 'Submit #1')
{
echo '<script> alert("Hola Kernel -- Submit #1"); </script>';
}
?>
<?php
if(isset ($_POST['bttsubmit']))
{
echo '<script> alert("Hola Kernel -- Submit #2"); </script>';
}
?>
<form name="form1" method="post" action="" id="primary">
<input type="submit" name="nombre_del_boton" id="nombre_del_boton" value="Submit #1">
</form>
<form name="form1" method="post" action="">
<input type="submit" name="bttsubmit" id="nombre_del_boton" value="Submit #2">
</form>
<form action="/index.php" method="post" id="login-form">
<button type="submit" tabindex="0" name="bttsmt">Identificarse</button>
</form>
<form id="paul">
<input type="button" onclick="alert(document.forms[0].id);" value="Rrtortnar ID" />
</form>