I want to create something like how tek-tips have here with the "threads per page" module:
I want the option to choose the number of threads on a specific page... like this one. but when i created my code on the page:
<cfoutput>
<form name="selectrow" action="forum.cfm?maxrows=#maxrows#" method="post">
<table>
<tr>
<td>
<select name="maxrows" onChange="submit()">
<option value="">Select
<option value=20>20
<option value=30>30
</select>
</td>
</tr>
</table>
<cfoutput>
CF Server tells me that the variable #maxrows# does not have a value. Which is true. So I set a <cfparam> to declare the "maxrows" variable at the beginning of the page. But then when i choose either a 20 or 30 in the drop-down menu to choose the number of records. The page doesn't update to reflect the new number of threads. What am I doing wrong or am i missing something else?
-lminmei
I want the option to choose the number of threads on a specific page... like this one. but when i created my code on the page:
<cfoutput>
<form name="selectrow" action="forum.cfm?maxrows=#maxrows#" method="post">
<table>
<tr>
<td>
<select name="maxrows" onChange="submit()">
<option value="">Select
<option value=20>20
<option value=30>30
</select>
</td>
</tr>
</table>
<cfoutput>
CF Server tells me that the variable #maxrows# does not have a value. Which is true. So I set a <cfparam> to declare the "maxrows" variable at the beginning of the page. But then when i choose either a 20 or 30 in the drop-down menu to choose the number of records. The page doesn't update to reflect the new number of threads. What am I doing wrong or am i missing something else?
-lminmei