Read a form on a web page Write a CGI program (in C++) that will provide \'added
ID: 3916605 • Letter: R
Question
Read a form on a web pageWrite a CGI program (in C++) that will provide 'added value'. The user is to key in a value (or select a value) in an HTML page and then run the CGI program. The program is to return a page containing useful information that is different from but related to what was keyed in.
You may NOT use redirection - i.e. YOU have to provide the content of the page returned.
You should turn in ...
the web pages seen by the user using the browser, a listing of the html code, and a listing of your C++ program that you wrote.
Read a form on a web page
Write a CGI program (in C++) that will provide 'added value'. The user is to key in a value (or select a value) in an HTML page and then run the CGI program. The program is to return a page containing useful information that is different from but related to what was keyed in.
You may NOT use redirection - i.e. YOU have to provide the content of the page returned.
You should turn in ...
the web pages seen by the user using the browser, a listing of the html code, and a listing of your C++ program that you wrote.
Read a form on a web page
Write a CGI program (in C++) that will provide 'added value'. The user is to key in a value (or select a value) in an HTML page and then run the CGI program. The program is to return a page containing useful information that is different from but related to what was keyed in.
You may NOT use redirection - i.e. YOU have to provide the content of the page returned.
You should turn in ...
the web pages seen by the user using the browser, a listing of the html code, and a listing of your C++ program that you wrote.
Explanation / Answer
Html code :
<html>
<body>
<a href="/user/local/apache2/cgi-bin/helloworld.cgi">click me</a> // link between it will display the data
</body>
</html>
c++ Programming code :
#include <iostream>
using namespace std;
int main(){
cout << "Content-type: text/html" << endl;
cout << "<html>" << endl;
cout << " <body>" << endl;
cout << " Hello World!" << endl;
cout << " </body>" << endl;
cout << "</html>" << endl;
return 0;
}
it will return value
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.