Hi Robin,
Appreciate your looking into this.
We're generating a list of QR codes for a potentially long series of records, and then copying individual codes from that list into documents for various print media campaigns.
A few codes are easy to keep track of and even manually rename, but if one gets out of place in a longer list, it's near impossible to sort them out.
I hate to admit it, but I’ve stared at the http://api.jquery.com/attr/ docs for quite a while, and I still haven’t a clue how to implement it in the following, to change the file names of the generated QR codes from chart.png to <?php echo$record['title'] ?>.png:
Thanks for any help you can offer,
Jerry
<table border="0">
<tr>
<td align="center"><hr /></td>
</tr>
<?php foreach ($my_list_Records as $record): ?>
<?php $num = $record['num'] ?>
<tr>
<td align="center">
<?php echo strtoupper($record['title']) ?>
</td>
</tr>
<tr>
<td align="center" valign="top">
<!--Show QR code with title and record number-->
<?php
echo qrCode(array(
'type' => 'url',
'size' => '547', // thumbnail height & width in pixels
'url' => 'http://www.mysite.com/my_detail.php?' . $num
));
?>
<br />
<br />
URL to the target for this record: http://www.mysite.com/my_detail.php?<?php echo $num ?>
<hr />
</td>
</tr>
<?php endforeach ?>
</table>
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php