What Is CGI Programming?

Web designers use common gateway interface (CGI) programming to create applications that allow web servers to get information from databases and share it with web users. Read on to find out more about how CGI programming works and how you might go about utilizing it. Schools offering Computer Programming degrees can also be found in these popular choices.

CGI Programming-Overview

Common gateway interface allows web servers to obtain data from documents and databases and then show that data to users. According to the World Wide Web Consortium, www.w3.org, CGI programming is typically used with HTML (hypertext markup language) forms to create database applications. Popular CGI programs include virtual guest books, counters that track website visits, and forms that users fill out to place orders or send e-mails.

Important Facts About Computer Programmers

Similar Occupations Web and software developer, database administrator
Required Education Bachelor's degree
Job Outlook (2014-2024) 8% growth
Median Salary (2014) $77,550

Source: U.S. Bureau of Labor Statistics

How CGI Programming Works

A simple example of CGI programming is a website's feedback form. Once a feedback page is in your browser, you fill it out, then click the submit button. The browser then copies the form's information and the name of the CGI program that is designed to process that data. The browser sends that information to the remote computer server and it accepts the information. It then sends the form to the specified e-mail address and gives the server a URL for a 'thank you' page. Then, your browser goes to that URL and you see the 'thank you' page. According to the National Center for Supercomputing Applications at the University of Illinois, such CGI programs are executed in real time. Individuals who are skilled in CGI programming work to ensure that these programs are quick to process so that users are not forced to wait.

Learning CGI Programming

While CGI programs can be written with many programming languages, Perl is one of the most popular. CGI programmers are typically proficient in multiple programming languages. For those whose programming experience is limited, many free tutorials can be found online. Once you are fluent in a programming language, you can start writing your own CGI programming scripts. Numerous sites offer free, step-by-step CGI tutorials. To begin CGI programming, you will need access to a web server that is capable of managing CGI scripts. Your web hosting service may provide information on such access.

To continue researching, browse degree options below for course curriculum, prerequisites and financial aid information. Or, learn more about the subject by reading the related articles below:

  • 1. Degree Options:
The schools in the listing below are not free and may include sponsored content but are popular choices among our users. Tuition and costs will vary across programs and locations. Be sure to always request tuition information before starting a program.

Popular Schools

  1. 1
  2. 2
  3. 3
  4. Next »