Next Index Previous

Python Examples

17. Python cgi program example.

#!D:/Python36/python.exe

import cgi;

print("Content-type:text/html \r\n")
print("<html>")
print("<head>")
print("</head>")
print("<body>")
print("<form action='addstudent.py' method='post'>")
print("<input type='text' name='sname' placeholder='Enter your name'>")
print("<input type='text' name='fee' placeholder='Enter Fee'>")
print("<input type='submit'>")
print("</form>")
print("</body>")
print("</html>")

Output :






Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands
Google+