ラジオ入力タイプを使用する代わりに、カスタムdivs/span(fontelloアイコンを含む)を使用したいと考えています。それらをクリックすると、のようなPOSTメソッドを初期化する必要がありますなど
if (isset($_POST['span1'])){
/*send to database that user voted 1/5*/
}
if (isset($_POST['span2'])){
/*send to database that user voted 2/5*/
}
を私は他の人の間でthat solution見つけ、hovewerその要素がクリックされたPHPを通知しません。それをどうすれば実現できますか?
私の投票「テンプレートは」:
<form name="bald" method = "post">
<span class="ico_style" onclick="bald.submit();" name = "span1">ICO</span>
<span class="ico_style" onclick="bald.submit();" name = "span2">ICO</span>
<span class="ico_style" onclick="bald.submit();" name = "span3">ICO</span>
<span class="ico_style" onclick="bald.submit();" name = "span4">ICO</span>
<span class="ico_style" onclick="bald.submit();" name = "span5">ICO</span>
</form>
使用ラジオボタンの男スパン入力フィールド、ラジオボタンと間違って何 – madalinivascu
されていませんか? – madalinivascu
私はカスタムフォントロゴアイコンを使用しているので、私はそれがinpit型をINSTEADしたいと言った。 – Atex