Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!"C:\Python27\python.exe"
- import sqlite3
- # MEMBUAT KONEKSI KE SQLITE
- conn = sqlite3.connect('C:\Users\AZKA_STYLE\Documents\Mahasiswa1.db')
- cursor = conn.cursor()
- # form.py
- print "Content-type: text/html"
- print
- print "<html>"
- print "<head><title>Test Form</title></head>"
- print "<body>"
- print "<h1>AZKA WILLDAN MUKHOLLADUN </h1>"
- # MENAMBAHKAN METHOD POST
- print " <form action=\"Kirim.py\" method=\"POST\">"
- print "<br>Username</br>"
- print " <input type=\"text\" name=\"username\" />"
- print "<br>Password</br>"
- print " <input type=\"text\" name=\"password\" />"
- print " <input type=\"submit\" value=\"Submit\" />"
- print " </form>"
- print "</body>"
- print "</html>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement