Advertisement
anhlocpr

Untitled

Apr 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <form id="stored" action="/stored">
  2. <input type="hidden" id="name" value="name">
  3. <input class="email_input subscribe" id="secret" name="secret" type="text" placeholder="secret">
  4. <input class="email_input subscribe" id="flag" name="flag" type="text" placeholder="flag">
  5. <button class="email_submit" id="submit" type="button" onclick="myFunction()">stored</button>
  6. <label style="display:block;padding:10px 0px; color:green;" for="mc-email"></label>
  7. </form>
  8.  
  9. <script type="text/javascript">
  10. function myFunction() {
  11. var name = document.getElementById("name").value;
  12. var secret = document.getElementById("secret").value;
  13. var flag = document.getElementById("flag").value;
  14.  
  15. if (0) {
  16. } else {
  17. $.ajax({
  18. type: "POST",
  19. contentType: "application/json",
  20. url: "http://me.zing.vn/stored",
  21. data: JSON.stringify({ username: name, secret: secret,flag: flag }),
  22. cache: false,
  23. success: function(html) {
  24. window.location="./";
  25. }
  26. });
  27. }
  28. return false;
  29. }
  30.  
  31. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement