- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to send the result of Python CGI script to the browser?
# Get data from fields from HTML page first_name = form.getvalue('first_name') last_name = form.getvalue('last_name') send data to Browser print("Content-type:text/html") print print("") print("") print("Hello - Second CGI Program") print("") print("") print(" Hello %s %s " % (first_name, last_name)) print("") print("")
- Related Articles
- How to pass Radio Button Data to Python CGI script?
- How to pass Text Area Data to Python CGI script?
- How to execute Python CGI Script on Apache Server?
- How to pass Checkbox Data to Python CGI script?\n\n
- How to pass Drop Down Box Data to Python CGI script?
- How to read all HTTP headers in Python CGI script?
- How to process a simple form data using Python CGI script?
- How to send an error code using JSP to browser?
- How to send private messages from twitter to a browser
- How to do CGI programming in Python?
- Execute a script when the browser starts to work online in HTML?
- Execute a script when the browser starts to work offline in HTML?
- How to setup cookies in Python CGI Programming?
- How to retrieve cookies in Python CGI Programming?
- How to configure Apache for Python CGI Programming?

Advertisements