Question: pls help me with the below CGI code: 3. (1) Prepare an HTML file, prob3.html, with the following content: This program computes 1 + 2+

pls help me with the below CGI code:

pls help me with the below CGI code: 3. (1) Prepare an

3. (1) Prepare an HTML file, prob3.html, with the following content: This program computes 1 + 2+ 3+ + n where n is entered from the browser

fp> Enter n:

Enter m:

Enter n:

#include #include int main() float m,n; /* The variable input takes parameters passed by HTML * char *input - getenv("QUERY_STRING" ); /* We now separate m and n from one long string of "input"* sscanf(input, "number1=&E&number2-%f", &m, &n); /* CGI script must spit the following string no matter what ! */ printf("Content-type: text/html "); /*Any printf command hereafter is output to the web browser. */ printf ("The sum is %f" ,m+n); return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!