Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- function validateForm() {
- if ((document.getElementById('name').value == null) || (document.getElementById('name').value == "") {
- alert ("El campo nombre no puede quedar en blanco");
- document.getElementById('name').focus();
- return false;
- }
- }
- </script>
- </head>
- <?php
- include ('menu.php');
- ?>
- <body>
- <form method="post" action="confirmacion_modificacion.php" onsubmit="return validateForm('hola');" name="modificacion" target="_top" id="modificacion">
- <p>Nombre:</p>
- <p><input id="name" name="name2" size="50" class="inputbox" value="<?php echo $_POST['modify_name']; ?>" type="text"></p>
- <p>Apellido:</p>
- <p><input id="surname" name="surname2" size="100" class="inputbox" value="<?php echo $_POST['modify_surname']; ?>" type="text"</p>
- <p><input type="hidden" name="id2" id="id2" value="<?php echo $_POST['modify_id'];?>">
- <p style="margin-top:10px"><input name="guardar" value="Guardar" class="button" type="submit"></p>
- </div>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement