| | |
Question on Integrating Python with HTML
![]() |
•
•
Join Date: Apr 2008
Posts: 10
Reputation:
Solved Threads: 0
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?
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?
![]() |
Other Threads in the Python Forum
- Previous Thread: Targets?
- Next Thread: how to define a dictionary in python
Views: 433 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Python
application array beginner c++ c/c++ change character class clear client code command convert count create csv ctypes database dictionary django dll error examples excel exe extensions fdlib file float format framework ftp function graphics gui homework image images import input library line linux list lists logging loop loops microcontroller mouse multiple mysql mysqldb mysqlquery number numbers output parse parsing path port prime processing program programming py2exe pygame pygtk pyqt python random raw_input recursion recursive redirect remote scrolledtext server socket ssh stdout string strings syntax table terminal text thread threading tkinter transparency tuple tutorial ubuntu unicode variable variables web windows wxpython






