andy68 Posted October 21, 2008 Share Posted October 21, 2008 Hi,i am quite new to php and i am trying to get an image to display at the side of some text,the products have a price id;1,2,3,4 and i would like to display image1,image2,image3,image4 to the right off them respectively,many thx. i have this on my page.php; if($product_groups = $PMDR->get('Products')->getProductsArray()) { foreach($product_groups as $group) { foreach($group['products'] as $product) { foreach($product['pricing'] as $key=>$price) { $form_pricing[$price['id']] = 'Pricing Level '.$price['id']; $form->addField('pricing_id','radio',array('label'=>'Pricing Level '.$price['id'],'fieldset'=>'products')); } } } $form->addField('submit','submit',array('label'=>$PMDR->getLanguage('user_submit'),'fieldset'=>'submit')); } And this on my page.tpl, <input style="width: auto;" type="radio" name="pricing_id" value="<?php echo $price['id']; ?>"> Link to comment https://forums.phpfreaks.com/topic/129404-phpimages/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.