| Posted: 08 November 2009 at 3:18pm | IP Logged
|
|
|
You have this
<cfif form.fishfamily neq "">
and family = '#form.fishfamily#'
</cfif>
so form.fishfamily must exist.
If you are clicking a link, then the form is not submitted so u get an error.
if you want to use both form and url then you need to make sure all the variables exist in both scopes. Or simply stick to using only forms. When clicking a page link, you can use javascript to pass the page number into a hidden field and then submit the form.
Remember that not scoping your variables means that cf will search all scopes, which is one way to use both form or url, but could result in values being pulled from another scope. Another alternative is to copy the form and url into a custom scope and use that instead. This is how fusebox used to do it with formurltoattributes.
Perhaps this article may help
http://www.coldfusionjedi.com/index.cfm/2006/4/24/ColdFusion -and-Pagination
__________________ Russ Michaels
CFDeveloper Administrator
my blog: <a href="http://russ.michaels.me.uk/">russ.michaels.me.uk< ;/a>
|