$count=0; while ($count < 20){ $count+=1; if ($$hashRecordPtr{'price_product1'} ne "" ) { print "<tr bgcolor=\"#EDEFF5\">"; if ($$hashRecordPtr{'connection1_description'} ne ""){ print<<"CONNECTION1"; <td valign="middle" align="center" width="78">$$hashRecordPtr{'connect +ion1_size1'}</td> CONNECTION1 } if ($$hashRecordPtr{'connection1_description'} ne ""){ print<<"CONNECTION2"; <td width="78" align="center" valign="middle">$$hashRecordPtr{'connect +ion2_size1'}</td> CONNECTION2 } print "<td width=\"78\" align=\"center\" valign=\"middle\">$$hashRecor +dPtr{'part_number1'}</td>"; if ($$hashRecordPtr{'part_reference1'} ne ""){ # ie its a pack not ind +. print<<"PARTREF"; <td width="78" align="center" valign="middle">$$hashRecordPtr{'part_re +ference1'}</td> PARTREF } if ($$hashRecordPtr{'pack_qty1'} > 2){ # ie its a pack not ind. print<<"PACK"; <td width="78" align="center" valign="middle">$$hashRecordPtr{'pack_qt +y1'}</td> PACK } print<<"HTML3"; <form name="prod_1" action="shoppingBasket2.cgi" method="post"> <td width="68" align="center" valign="middle">£$$hashRecordPtr{' +price_product1'}</td> <td width="72" align="center"> <select name="order_qty"> <option value="1" selected>1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </td> <td width="98" align="center" bgcolor="#EDEFF5"><a href=\"javascript: +validateUserAdd(prod_1)\">Add To Basket</a></td> <input type="hidden" name="action" value="add"> <input type="hidden" name="product_id" value="$$hashRecordPtr{'product +_id'}"> <input type="hidden" name="product_details" value="$$hashRecordPtr{'sh +ort_details'} ($$hashRecordPtr{'code1'})"> <input type="hidden" name="code" value="$$hashRecordPtr{'code1'}"> </tr> </form> HTML3 } #cut out from here }
2006-06-13 Retitled by planetscape, as per Monastery guidelines
Original title: 'Interpolation'
In reply to Interpolation in a hash key by pickledegg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |