Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! This is for my INTRO to Linux class. We are learning CGI and HTML/Javascript using BASH and Vi Editor. Thank you for the help

Hello! This is for my INTRO to Linux class. We are learning CGI and HTML/Javascript using BASH and Vi Editor. Thank you for the help in advance!

STAGE 2 | CGI

Remember that all of your CGI pages must be saved inside of your public_html/cgi-bin directory so be sure to change directories to this directory before continuing. Once you are inside of your public_html/cgi-bin directory. In this part of a lab you will create a CGI script called Gross_Pay.cgi. This script will calculate grossPay using hours and rate. As you may have guessed, hours and rate will be extracted from the query string. NOTE: Overtime (hours over 40 is paid double).

To start it off, create a webpage called Gross_Pay.cgi .

After the 3 heading lines will be the section to process the QUERY_STRING

# if QUERY_STRING exist, process and extract var_hours and var_rate - refer to Lab 14

If [ -n ${QUERY_STRING ]; then

fi

Start creating your document with the following characteristics:

Cat

# Using embedded CSS, change the color of the webpage to an off-white color of #F2F2F2

# Give The Page A Title of Gross Pay

# Add A H1 Heading Of Gross Pay Calculation

EOF

# Add a drop-down menu for Hours Worked using

# For

# options are: 10,20,30,40,50,60

# Add a drop-down menu for Pay Rate using

# For

# options are: 10,15,20,25,30,35,40,45,50,55,60

Cat

# Add a text box for Gross Pay

# Add a submit button

EOF

image text in transcribed

G: C O O cit1 60lab.sandbox.csun.edu/~zart/cgi-bin/Gl : Gross Pay Calculation Hours Worked 10 Gross Pay: $300 Pay Rate 10 Calculate Gross Pay

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

ISBN: B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Define and measure service productivity.

Answered: 1 week ago