Advertisement
AZKA09

CODE Form.py

Apr 28th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1. #!"C:\Python27\python.exe"
  2. import sqlite3
  3.  
  4.  
  5. # MEMBUAT KONEKSI KE SQLITE
  6. conn = sqlite3.connect('C:\Users\AZKA_STYLE\Documents\Mahasiswa1.db')
  7. cursor = conn.cursor()
  8.  
  9.  
  10.  
  11. # form.py
  12. print "Content-type: text/html"
  13. print
  14. print "<html>"
  15. print "<head><title>Test Form</title></head>"
  16. print "<body>"
  17. print "<h1>AZKA WILLDAN MUKHOLLADUN </h1>"
  18. # MENAMBAHKAN METHOD POST
  19. print " <form action=\"Kirim.py\" method=\"POST\">"
  20. print "<br>Username</br>"
  21. print "     <input type=\"text\" name=\"username\" />"
  22. print "<br>Password</br>"
  23. print "     <input type=\"text\" name=\"password\" />"
  24. print "     <input type=\"submit\" value=\"Submit\" />"
  25. print " </form>"
  26. print "</body>"
  27. print "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement