I am generating dynamically output for php page via a Python script. During this endavour of mine, I've been also using JavaScript inside my Python script, like so:
print "<script language=\"JavaScript\">"
print "function myF() {"
print "var myField = document.getElementsByName(\"textField\");"
print "var value = myField.value;"
print "}</script>"
Well anyways, I need to get the value somehow into Python, as in assign it to a Python variable. How can I do this?