Guest User

Untitled

a guest
Apr 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. $('#wyslij').ready(function () {
  2.  
  3. $('#logowanie').click(function () {
  4.  
  5.  
  6. var ssid = $('#logowanie').attr("#SSID");
  7. var passwd = $('#logowanie').attr("#passwd");
  8. var typ = $('#logowanie').attr("#typSzyf");
  9. var op;
  10. var op3 ;
  11. var op2;
  12. $.ajax({
  13. type: 'POST',
  14. dataType: 'JSON',
  15. url: 'http://127.0.0.1/audio_alarm.php',
  16. data: { op: ssid, op2: passwd, op3: typ },
  17.  
  18.  
  19. });
  20.  
  21.  
  22. });
  23.  
  24. <div id="logowanie">
  25.  
  26. <form>
  27. <input id="SSID" type="text" placeholder="SSID" />
  28. <br /> <br />
  29. <input id="passwd" type="password" placeholder="Hasło" />
  30. <br /> <br />
  31.  
  32. <select id="typSzyf" name="Szyfrowanie">
  33. <option value="WEP">WEP</option>
  34. <option value="WPA">WPA</option>
  35. <option value="WPA2">WPA2</option>
  36. </select>
  37.  
  38. <br /> <br />
  39. <input onclick="wyslij();" id="wyslij" type="submit" value="Wyślij!" />
  40. </form>
  41.  
  42. </div>
  43. <br/> <br/> <br/>
Add Comment
Please, Sign In to add comment