Entries from 2008-07-11 to 1 day
CGIで掲示板を作ってみた。 http://www.sugyan.dynalias.com/~sugi/cgi-bin/cheapbbs.cgi どうも送信後にフォームの文字が化ける。おかしいなぁ。 ・・・と思ってググってみると、やっぱり情報があった!! CGI.pm の textfield(), popup_menu(), checkbox_g…
って、これでいいの?? もっと考慮すべきことがあるのかなぁ・・・ sub convert_char { my $arg = shift; $arg =~ s/&/&/g; $arg =~ s/ / /g; $arg =~ s/\"/"/g; $arg =~ s/</</g; $arg =~ s/>/>/g; return $arg; }