单选按钮开关语句
<input type="radio" name="deckung" id="Basis-Deckung" value="737.80" onClick="DisplayPrice()">
<input name="deckungname" type="hidden" id="StartUp-Deckung" value="StartUp-Deckung">
<input name="selbstb" type="hidden" id="selbst_startUp" value="500,- EUR">
<input type="radio" name="deckung" id="Standard-Deckung" value="1368.50" onClick="DisplayPrice()">
<input name="deckungname" type="hidden" id="Standard-Deckung" value="Standard-Deckung">
<input name="selbstb" type="hidden" id="selbst_standard" value="1.500,- EUR">
<input type="radio" name="deckung" id="Premium-Deckung" value="1785.00" onClick="DisplayPrice()">
<input name="deckungname" type="hidden" id="Premium-Deckung" value="Premium-Deckung">
<input name="selbstb" type="hidden" id="selbst_premium" value="2.000,- EUR">
大家好,
我有一个大问题,我想转移 Deckung 字段下两个隐藏字段的值。
if
{
$deckung == '737.48';
echo 'deckungsname=StartUp-Deckung; selbstb='500,-';
}
elseif $deckung == '1368.50';
{
echo 'deckungsname=Standard-Deckung; selbstb='1.500,- EUR';
}
elseif $deckung == '1785.00';
{
echo 'deckungsname=Premium-Deckung; selbstb='2.000,- EUR';
}
希望我能解释一下我想做什么!
可以在此处查看表格:公式
<input type="radio" name="deckung" id="Basis-Deckung" value="737.80" onClick="DisplayPrice()">
<input name="deckungname" type="hidden" id="StartUp-Deckung" value="StartUp-Deckung">
<input name="selbstb" type="hidden" id="selbst_startUp" value="500,- EUR">
<input type="radio" name="deckung" id="Standard-Deckung" value="1368.50" onClick="DisplayPrice()">
<input name="deckungname" type="hidden" id="Standard-Deckung" value="Standard-Deckung">
<input name="selbstb" type="hidden" id="selbst_standard" value="1.500,- EUR">
<input type="radio" name="deckung" id="Premium-Deckung" value="1785.00" onClick="DisplayPrice()">
<input name="deckungname" type="hidden" id="Premium-Deckung" value="Premium-Deckung">
<input name="selbstb" type="hidden" id="selbst_premium" value="2.000,- EUR">
Hello Guys,
i have a big problem, i want to transfer the values of the two hidden fields under the deckung field.
if
{
$deckung == '737.48';
echo 'deckungsname=StartUp-Deckung; selbstb='500,-';
}
elseif $deckung == '1368.50';
{
echo 'deckungsname=Standard-Deckung; selbstb='1.500,- EUR';
}
elseif $deckung == '1785.00';
{
echo 'deckungsname=Premium-Deckung; selbstb='2.000,- EUR';
}
Hope i could explain what i want to to do!
Can see the Form here: Formular
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)