フォームを使って値を渡すのに <INPUT TYPE=SUBMIT NAME=WORD VALUE='*****'> とボタンを作成し、VALUEの値 (中身を確認、とか送信実行とか) で動作を分岐し、実行していました。 このボタンを画像にしたいのですが、 値を渡すのはGETじゃないと無理でしょうか? (今まではPOSTで送信) ボタンを画像にするとなると <A HREF='**.cgi'><IMG SRC='**'></A> となるので、 <A HREF='**.cgi?key=****'><IMG SRC='**'></A> のように、する必要があるのかなぁ?と思いまして… せっかくPOSTで受け取るようにCGIを作成したので、 できればPOSTのままで使用できればと思うのですが。 (無理ならGETに変更するしかないですけど) VALUEの値はボタンでは送信できないので、 <INPUT
この記事は12年以上前の記事です。情報が古い場合がありますのでお気を付け下さい。twitterの友人のブログ記事を見ていて思い出したこと。 CSSで検索フォームをカスタマイズ ? vanillate とても良い記事なので是非ご覧あれ。 (長くなっちゃったので、覚悟して読んでね!) さて本題。 formタグからデータを送信する方法として、一般的に <input type=”submit” value=”送信” /> とする方法と <input src=”hoge.gif” type=”image” value=”送信” /> として画像を送信ボタンにする方法がある。 さらにsubmitにはnameタグをつけて、そのデータを取得することが出来る。 例えば。 (※これは乱暴なコードです!決して実際に使おうとか考えないように!) <form action=”recieve.php” method=
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く