Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <form action="script.py" method="GET">
  2. <input type="text" name="TEXT_1">
  3. <input type="text" name="TEXT_2">
  4. <input type="submit">
  5. </form>
  6. в cкрипте
  7. #!/usr/bin/env python3
  8. import cgi, cgitb
  9. import sys
  10. import codecs
  11. import os
  12. import requests
  13. form = cgi.FieldStorage()
  14. TEXT_1 = form.getvalue("firstname")
  15. TEXT_2 = form.getvalue('lastname')
  16. print('hello world')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement