I am trying to create text input in my HTML form but want that input to have name value set by variable:
#! c:\Python24\python
print "Content-Type: text/html\n"
import cgi,cgitb
cgitb.enable()
name1 = "kuba"
val1 = 150
name2 = "pipi"
val2 = 300
print("<form action='python2.py' method='GET'>")
print("<input type='text' name='name1'>")
print("<input type=submit value='name2'>")
I would like to have my text to have name "kuba" and not "name1"
Can someone give me a hint? Thank you, Jakub