From a view operation, I display a list of records selected. I want to have a Display More button on each line, the button is there. But when the button is pressed, nothing happens!
Here is the code I have for the form:
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
my (%rec) = @_; # Load any defaults to put in the VALUE field.
## warren was here ($db_auto_generate and print &build_html_record(%rec) and return);
## commented out by web to stop the auto generation of the forms.
$submit_button = "Display More";
print qq|
<TABLE WIDTH="100%" CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR>
<td width=7%>$rec{'propid'}</td>
<td width=10%>$rec{'location'}</td>
<td width=15%>$rec{'area'}</td>
<td width=40%>$rec{'text'}</td>
<td width=10%>$rec{'price'}</td>
<td width=18%><input type=hidden name="$db_key" value="$rec{'refno'}">
<INPUT TYPE="SUBMIT" NAME="html_add_success" VALUE="$submit_button"></td>
</TR>
</TABLE>
|;
}
And assistance would be appreciated.
Thank you in advance.
Here is the code I have for the form:
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
my (%rec) = @_; # Load any defaults to put in the VALUE field.
## warren was here ($db_auto_generate and print &build_html_record(%rec) and return);
## commented out by web to stop the auto generation of the forms.
$submit_button = "Display More";
print qq|
<TABLE WIDTH="100%" CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR>
<td width=7%>$rec{'propid'}</td>
<td width=10%>$rec{'location'}</td>
<td width=15%>$rec{'area'}</td>
<td width=40%>$rec{'text'}</td>
<td width=10%>$rec{'price'}</td>
<td width=18%><input type=hidden name="$db_key" value="$rec{'refno'}">
<INPUT TYPE="SUBMIT" NAME="html_add_success" VALUE="$submit_button"></td>
</TR>
</TABLE>
|;
}
And assistance would be appreciated.
Thank you in advance.