943,910 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 499
  • Python RSS
May 15th, 2008
0

Question on Integrating Python with HTML

Expand Post »
If I write a code like:
def addstring(n):
a1=raw_input("PRINT THE FIRST STRING:")
a2=raw_input("PRINT THE SECOND STRING:")
a3=" "
a4=a1+a3+a2
print "THE TWO STRINGS YOU PRINTED ARE ADDED AS"
print a4

Now, if I design one HTML form where strings can be submitted but if I put one ADD button how would I integrate with addstring function?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SUBHABRATAIISC is offline Offline
10 posts
since Apr 2008
May 15th, 2008
0

Re: Question on Integrating Python with HTML

You can use Python as a scripting language for HTML code similar to javascript, but the server has to allow it.
Reputation Points: 407
Solved Threads: 36
Posting Virtuoso
Lardmeister is offline Offline
1,701 posts
since Mar 2007
May 16th, 2008
0

Re: Question on Integrating Python with HTML

Yes, thanx for your suggestion I was thinking to use HTML Parser or VBScript and then transform into Python.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
SUBHABRATAIISC is offline Offline
10 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Targets?
Next Thread in Python Forum Timeline: how to define a dictionary in python





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC