Variable not being passed when paging

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 6, 2015   (RSS)

By claire - January 6, 2015

Hey Jerry, looks like you're missing the member_num in the paging links. Try this code:

 <?php if ((ceil(sizeof($accountsRecord['images']) / $photosPerPage)) > 1): ?><form action="?num=<?php echo $accountsRecord['num'] ?>" method="post"> 
        <?php if ($firstIndex > 0): ?>
        <a href="?photoPage=<?php echo $photoPage; ?>&member_num=<?php echo $accountsRecord['num'] ?>"><span
class="text_font">Click/Tap For Previous Page</span></a>   
        <?php endif ?>
        <span class="text_font" >Page
        <input type="text" name="photoPage" value="<?php echo($photoPage + 1); ?>" class="text_font" style="background-color:transparent; width:
10px; border:hidden;" />
        of <?php echo(ceil(sizeof($accountsRecord['images']) / $photosPerPage)); ?></span>
        <?php if ($lastIndex < sizeof($accountsRecord['images']) - 1): ?>
        <input style="background-color:transparent; border:hidden;" type="submit" value="" />
        <a href="?photoPage=<?php echo $photoPage+2; ?>&member_num=<?php echo $accountsRecord['num'] ?>"><span
class="text_font">Click/Tap For Next Page</span></a><br /> 
        <?php endif ?>
      </form>
      <?php endif ?>
      <br /> 
      <table border="0" cellspacing="3" cellpadding="3" width="80%">
        <tr>

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Thanks Claire,

Your second set of eyes (and amazing knowledge) has worked magic again...

Best,

Jerry Kornbluth

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