python with ASP

Sameer Chowdhury sameerc1 at yahoo.com
Thu Jan 6 23:39:51 EST 2000


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:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</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




More information about the Python-list mailing list