Question using CGI in Python
Markus Schaber
markus at schabi.de
Wed Aug 29 15:30:46 EDT 2001
Hi,
Maan Hamze <mmhamze at pleiades.net> schrub:
> Hidden = '<input type=hidden name=AnyNameHere value='+str(VAR1)+'>'
Yes, that works, but the Solution from Ignacio Vazquez-Abrams
>> print '<input type="hidden" name="VAR1" value="%s">' % VAR1
Should be faster, especially when using lots of pluses, as the plus
operator generates an string at every addition that is just for the GC.
markus
--
"The strength of the Constitution lies entirely in the determination of
each citizen to defend it. Only if every single citizen feels duty
bound to do his share in this defense are the constitutional rights
secure." -- Albert Einstein
More information about the Python-list
mailing list