Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <script type="text/javascript">
  4.         function validateForm() {
  5.             if ((document.getElementById('name').value == null) || (document.getElementById('name').value == "") {
  6.                 alert ("El campo nombre no puede quedar en blanco");
  7.                 document.getElementById('name').focus();
  8.                 return false;
  9.                 }
  10.             }
  11.     </script>
  12. </head>
  13. <?php
  14. include ('menu.php');
  15. ?>
  16. <body>
  17. <form method="post" action="confirmacion_modificacion.php" onsubmit="return validateForm('hola');" name="modificacion" target="_top" id="modificacion">
  18.     <p>Nombre:</p>
  19.     <p><input id="name" name="name2" size="50" class="inputbox" value="<?php echo $_POST['modify_name']; ?>" type="text"></p>
  20.     <p>Apellido:</p>
  21.     <p><input id="surname" name="surname2" size="100" class="inputbox" value="<?php echo $_POST['modify_surname']; ?>" type="text"</p>
  22.     <p><input type="hidden" name="id2" id="id2" value="<?php echo $_POST['modify_id'];?>">
  23.     <p style="margin-top:10px"><input name="guardar" value="Guardar" class="button" type="submit"></p>
  24. </div>
  25. </form>
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement