Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script language=javascript>
- function validate()
- {alert("validate");
- document.form1.action="validate.php";
- document.form1.submit();
- return false;
- }
- function del()
- { alert("delete");
- document.form1.action="delete.php";
- document.form1.submit();
- return false;
- }
- </script>
- </head>
- <body>
- <form name=form1 method=post>
- <input type=submit value='add this bug with main bugs' OnClick=validate()>
- <input type=submit name=delete value='delete this bug' OnClick=del()>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement