Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cgi in python; get() method

#!/usr/bin/python
  
# Import CGI and CGIT module
import cgi, cgitb              
  
# to create instance of FieldStorage 
# class which we can use to work 
# with the submitted form data
form = cgi.FieldStorage()      
your_name = form.getvalue('your_name')    
  
# to get the data from fields
comapny_name = form.getvalue('company_name')   
  
print ("Content-type:text/html
")
print ("<html>")
print ("<head>")
print ("<title>First CGI Program</title>")
print ("</head>")
print ("<body>")
print ("<h2>Hello, %s is working in %s</h2>" 
       % (your_name, company_name))
  
print ("</body>")
print ("</html>")
Comment

PREVIOUS NEXT
Code Example
Python :: tkinter window not responding during progress bar 
Python :: python get object attributes 
Python :: beautifulsoup documentation 
Python :: create date range python 
Python :: python developer 
Python :: frequency domain parameter of speech 
Python :: webhook logger python 
Python :: function print(text, times) 
Python :: string times python 
Python :: transfer sound to hz with python 
Python :: how to loop through glob.iglob iterator 
Python :: ArgumentParser(parent) 
Python :: why mentioning user agent in request library 
Python :: how to write a program that interacts with the terminal 
Python :: vbscript shutdown remote computer 
Python :: plot a against b 
Python :: pymol load coords 
Python :: dashes in python packages 
Python :: getting month number in python 
Python :: Python Iterating Through a Tuple 
Python :: qrcode how to add logo inside python 
Python :: pandas mappin ID to value in different row 
Python :: Python send sms curl 
Python :: how to make an app that sends email in python 
Python :: series multiindex values 
Python :: the most effective search algorithm in python 
Python :: how to reference second line of matrix in python 
Python :: Customizing multiple plots in the same figure 
Python :: python lambda append to list and return it 
Python :: Basic 13 Algorithm 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =