python with ASP - pytest.asp (0/1)
Eugene Goodrich
bitbucket at isomedia.com
Thu Jan 6 22:35:56 EST 2000
When you copy-and-pasted my code, it appears you lost the tabbing.
I've attached the code in case your newsreader isn't displaying the
tabs happily.
-Eugene
On Thu, 6 Jan 2000 20:39:51 -0800, "Sameer Chowdhury"
<sameerc1 at yahoo.com> wrote:
>I get the following error with the code listed below:
>
>Python ActiveX Scripting Engine error '80020009'
>
>invalid syntax
>
>/pytest2.asp, line 4
>
>sStr = '<b> Got Title</b>'
>---^
>
>
>So this code does what you want.
>
><%@ LANGUAGE = Python %>
><%
>if len (Request.Form("title")):
>sStr = '<b> Got Title</b>'
>else:
>sStr = '''<FORM ACTION="./pytest.asp" method="POST">
>
><b>Title:        </b><BR>
><input type="text" value="" size=60 name="title"><P>
><input type=submit value="Submit">
></form>'''
>%>
><html>
><%= sStr %>
></html>
>
> -Eugene
>
>
>
>
>
>
>__________________________________________
>NetZero - Defenders of the Free World
>Get your FREE Internet Access and Email at
>http://www.netzero.net/download/index.html
>
import binascii; print binascii.a2b_base64 ('ZXVnZW5lQGlzb21lZGlhLmNvbQ==')
More information about the Python-list
mailing list