[英]form radio redirect on submit
I want to make a small quiz for web site. 我想对网站做一个小测验。 when each radio from question (1) and question (2) is checked it should redirect. 当检查问题(1)和问题(2)的每个无线电时,都应重定向。
<form action="" method="post">
<p>Question (1)</p>
<span>500</span>
<input type="radio" value="a1"/>
<span>1000</span>
<input type="radio" value="b2"/>
<span>2000</span>
<input type="radio" value="c3"/>
<p>Question (2)</p>
<span>1000</span>
<input type="radio" value="a4"/>
<span>2000</span>
<input type="radio" value="b5"/>
<input type="button" value="Go" />
</form>
a1 + a4 redirect to a.html
a1 + b5 redirect to b.html
b2 + a4 redirect to c.html
b2 + b5 redirect to d.html
c3 + a4 redirect to e.html
c3 + b5 redirect to f.html
any help will be appreciated. 任何帮助将不胜感激。
为此,您必须使用javascript检查广播,然后再使用javascript提交页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.