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 16***/

起動確認のメッセージを出力するcgiのプログラム ファイル名 : cgi_test. cgi をフォルダcgiの中に保存 フォルダ cgi は www. isc. chubu. ac. jp/pj 16***/ にロード ロードしたら、 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);