tags:

views:

27

answers:

1

I'm using filemaker server 10 and the filemaker.php API. on the record detail page, I'd like a "next" and "previous" button to allow browsing the next/previous buttons easily (without having to go back to the list view).

is this possible and how?

thanks

A: 

In browserecord.php need to define the record id for the next next record-

   $recid = $cgi->get('-recid'); \\ exists
$recnxt = ($cgi->get('-recid')+1);  \\added  for next record

Then you can place anywhere:

<a href='<?php echo "browserecord.php?-action=browse&amp;-recid=$recnxt";?>'>Next record</a>

This does not check that the next record exists of course.