Guest User

Untitled

a guest
Jul 25th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <html>
  3. <head>
  4.  
  5. <script>
  6. function validateUserForm() {
  7. var userSearchTerm=document.forms.["searchBox"]["searchTerm"];
  8. if (userSearchTerm.value == "")
  9. {
  10. window.alert("You have entered a blank value. Please enter a-z or A-Z");
  11.  
  12. return false;
  13. }
  14. document.getElementById("searchBox").submit();
  15. }
  16.  
  17. </script>
  18.  
  19. <title>Search</title>
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  21. <link rel="stylesheet" type="text/css" href="style.css"/>
  22. </head>
  23. <body>
  24. <form name="searchBox" action="search2.php" onsubmit="return validateUserForm()" method="POST">
  25.  
  26.  
  27. Enter your desired letter to search for here:<input type="text" name="searchTerm">
  28. <input type="submit" value="submit" name="submit">
  29. </form>
  30. </body>
  31. </html>
RAW Paste Data