2012-10-18 62 views
0

今天在我们的电子商务网站上出现了一个奇怪的错误,尽管在过去一次客户多次使用iphones的时间超过100次,但不断出现错误。检查数据库显示他们的付款方式的价值没有得到存储。Iphone不发送单选按钮

我看不出任何形式的错误,它适用于包括其他一些iPhone在内的其他人。问题表单的部分看起来像。

<tbody > <tr > <td ><input name="payment_type" type="radio" value="nc" checked id="master_card" /> <label for="master_card" >Master Card</label></td> </tr> <tr > <td ><input name="payment_type" type="radio" value="nc" id="visa"/> <label for="visa" >Visa</label></td> </tr> <tr > <td ><input name="payment_type" type="radio" value="sc" id="maestro" /> <label for="maestro" >Maestro</label></td> </tr> <tr > <td ><input name="payment_type" type="radio" value="sc" id="visa_delta"/> <label for="visa_delta" >Visa Delta</label></td> </tr> <tr > <td><input name="payment_type" type="radio" value="sc" id="switch"/> <label for="switch" >Switch/Solo</label></td> </tr> <tr> <td ><input name="payment_type" type="radio" value="paypal" id="paypal" /> <label for="paypal" >(PayPal)</label></td> </tr> </tbody>

+0

您可以尝试将问题缩小到特定的ios版本或broswer。即它只发生在iphone上的Chrome?它只发生在iPhone 4s与ios 4.3? 你可以通过验证器运行html,以确保它很好。 – case1352

回答

1

看起来好像没什么问题,但你可能想尝试检查=“检查” - 通常喜欢当你的DOM被搞砸了,而浏览器具有显示文档的麻烦出现这种情况的问题。我建议通过W3C验证器整个页面,并解决所有问题,然后看看是否能解决问题。

<input name="payment_type" type="radio" value="nc" checked="checked" id="master_card" /> 
<label for="master_card" >Master Card</label> 

<input name="payment_type" type="radio" value="nc" id="visa"/> 
<label for="visa" >Visa</label> 

<input name="payment_type" type="radio" value="sc" id="maestro" /> 
<label for="maestro" >Maestro</label> 

<input name="payment_type" type="radio" value="sc" id="visa_delta"/> 
<label for="visa_delta" >Visa Delta</label> 

<input name="payment_type" type="radio" value="sc" id="switch"/> 
<label for="switch" >Switch/Solo</label> 

<input name="payment_type" type="radio" value="paypal" id="paypal" /> 
<label for="paypal" >(PayPal)</label> 
+0

好吧,这可能是有道理的,这是在该页面上通过验证器显示的唯一合理的事情,所以我会看看会发生什么。 – user1209203