Data Entry

tdsperth at gmail.com tdsperth at gmail.com
Tue Jan 12 20:52:02 EST 2016


Hi All

I have written a small web app using cgi for testing for changes to data from a python script that does a lot of database updating depending on certain conditions 

form = cgi.FieldStorage()
cRefNo = form.getvalue('refno')


cElectSupp = form.getvalue('electsupp')


 print('<font size = 3 color = "black">Electrical Supplier : <input type="text" name="electsupp" value=%s>'%cElectSupp)


If i change the value from origin to origin energy and save - the value updated to the database is correct but when the page is re displayed it only
shows origin in the text field - as if it ignores everything after the space.

How do I make it display the full name.

Cheers

Colin



More information about the Python-list mailing list