Data Entry
tdsperth at gmail.com
tdsperth at gmail.com
Tue Jan 12 21:58:17 EST 2016
On Wednesday, January 13, 2016 at 9:52:17 AM UTC+8, tdsp... at gmail.com wrote:
> 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
Hi Chris
%r worked a treat
thanks
Colin
More information about the Python-list
mailing list