cgiHTML cgitest html seisaku DOCTYPE html head titlecgititle

  • Slides: 9
Download presentation

cgiプログラムを起動するHTML文書 ファイル名  保存場所 : cgi_test. html : フォルダ seisaku の中 <!DOCTYPE html> <head> <title>cgiプログラム起動テスト</title> </head> <body>

cgiプログラムを起動するHTML文書 ファイル名  保存場所 : cgi_test. html : フォルダ seisaku の中 <!DOCTYPE html> <head> <title>cgiプログラム起動テスト</title> </head> <body> <form action=". . /cgi_test. cgi"> <input type="submit" name="button" value="起動確認" /> </form> </body> </html>

起動確認のメッセージを出力するcgiのプログラム ファイル名 : cgi_test. cgi をフォルダcgiの中に保存 フォルダ cgi は www. isc. chubu. ac. jp/pj 15***/

起動確認のメッセージを出力するcgiのプログラム ファイル名 : cgi_test. cgi をフォルダcgiの中に保存 フォルダ cgi は www. isc. chubu. ac. jp/pj 15***/ にロード ロードしたら、 cgi_test. cgi に実行権(他人)を設定   #!/usr/bin/perl # print "Content-type: text/htmlnn"; print "<html>n"; print "<head>n"; print "<title>test_cgi</title>n"; print "<</head>n"; # print "<body>n"; print "プログラムが起動されました。n"; print "</body>n"; print "</html>n"; exit(0);

index. html にcgi_test. html (cgi起動HTML文書)へのリンクを追加 <div class="left"> <h 3>大学・学部・学科紹介</h 3> <a href="CU. html">中部大学</a> <a

index. html にcgi_test. html (cgi起動HTML文書)へのリンクを追加 <div class="left"> <h 3>大学・学部・学科紹介</h 3> <a href="CU. html">中部大学</a> <a href=" P. html">現代教育学部</a> <a href="PJ. html">児童教育学科</a> <h 4>cgiプログラム</h 4> <a href="cgi_test. html">cgi起動テスト</a> </div>