それでは、lunch.html を作ってみよう。
<html> <head> </head> <body> <form method="POST" action="./lunch.rb"> <p>今日のおひるごはん何にする? <select name="lunch"> <option> うどん <option> カレー <option> 焼き肉弁当 </select> </p> <p> <input type="submit" value="OK"> <input type="reset" value="reset"> </p> </form> </body> </html>
自分のホームの下の ~/public_html/rubycgi の lunch.html を開けてみる。
と見えたなら、できあがり。動作の解説はこちら
本日の講義 / 基礎プログラミング II / 2007 年度