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?

Recommended Answers

All 2 Replies

You can use Python as a scripting language for HTML code similar to javascript, but the server has to allow it.

Yes, thanx for your suggestion I was thinking to use HTML Parser or VBScript and then transform into Python.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.