Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.45 KB | None | 0 0
  1. Fill in with your account name:
  2. <br><input type="text" id="accname"><br>
  3. <input type="submit" onClick="return redirectToSignature();" value="Create signature!"><br>
  4.  
  5. <script>
  6.     function redirectToSignature() {
  7.         var accName = document.getElementById("accname").value;
  8.             if ( accName ) {
  9.                 window.location = "signature.php?username=" + accName;
  10.                 return true;
  11.                     }              
  12.             else        {
  13.                 alert ( "Please fill in the field." );
  14.                     }
  15.     }
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement