Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="stored" action="/stored">
- <input type="hidden" id="name" value="name">
- <input class="email_input subscribe" id="secret" name="secret" type="text" placeholder="secret">
- <input class="email_input subscribe" id="flag" name="flag" type="text" placeholder="flag">
- <button class="email_submit" id="submit" type="button" onclick="myFunction()">stored</button>
- <label style="display:block;padding:10px 0px; color:green;" for="mc-email"></label>
- </form>
- <script type="text/javascript">
- function myFunction() {
- var name = document.getElementById("name").value;
- var secret = document.getElementById("secret").value;
- var flag = document.getElementById("flag").value;
- if (0) {
- } else {
- $.ajax({
- type: "POST",
- contentType: "application/json",
- url: "http://me.zing.vn/stored",
- data: JSON.stringify({ username: name, secret: secret,flag: flag }),
- cache: false,
- success: function(html) {
- window.location="./";
- }
- });
- }
- return false;
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement