html - On click Windows Location not adding to form action -


i looking on website works in other browsers except ie.

is there reason why link below not work in ie?

code:

<form action="<?php echo base_url(); ?>shop/cart/add/<?php echo base64_url_encode(url_req()); ?>/" method="post">                 <div style="height: 150px;"><a href="<?php echo base_url(); ?>shop/product/details/<?php echo $c->getid(); ?>/"><?php if($im = shop_image::retrievebypk($c->getcover_image_id())) echo '<img src="',base_url(),$im->getmedium_path(),'" alt="click read more" style="max-height: 120px; max-width: 120px;" />'; ?></a></div>                 <p style="height: 30px;"><a class="products_name" href="<?php echo base_url(); ?>shop/product/details/<?php echo $c->getid(); ?>/"><?php echo $c->getname(); ?></a></p>                 <p><span class="price"><?php if($s=shop_special::retrievebycatalogid($c->getid())): echo '<small><del>$', number_format($c->getprice_net()*1.15,2),'</del></small> '; ?>$<?php echo number_format($s->getnew_price()*1.15,2); ?><?php else: ?><?php if(count($cheap=shop_quantity_price::retrievebycatalogidcheapest($c->getid()))!=0): ?>from $<?php echo number_format($cheap[0]->getprice_per_item()*1.15,2); else: ?>$<?php echo number_format($c->getprice_net()*1.15,2); ?><?php endif; ?><?php endif; ?></span><span class="currency">&nbsp;nzd</span></p>                 <p><a style="text-decoration: none;" href="<?php echo base_url(); ?>shop/product/details/<?php echo $c->getid(); ?>/"><img src="<?php echo base_url(); ?>assets/images/button_more.jpg" > &nbsp;</a>                      <input type="hidden" name="catalog" value="<?php echo base64_url_encode($c->getid()); ?>" /><input type="image" src="<?php echo base_url(); ?>assets/images/button_buynow.jpg" onclick="location.href='<?php echo base_url(); ?>shop/product/details/<?php echo $c->getid(); ?>/'" value="buy now" /></p>             </form> 

i'm not javascript guru, don't know why link fails in ie. can offer fix enable website work without javascript (which might solve problem):

<a href="http://www.domain.com.au/shop/product/details/31/">   <img src="http://www.domain.com.au/assets/images/button_buynow.jpg" alt="buy now" /> </a> 

note standard <a> link, , image within it. work - clicking image activates link.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -