Gossamer Forum
Home : Products : DBMan : Installation :

Altered search form not displaying properly

Quote Reply
Altered search form not displaying properly
Hi, again.

I am trying to customize the search form so that authorized users will have only two items to search with - department (a select field) and last name. This is the code I am using, which I copied and pasted from html_record:

Code:
print qq|
<TABLE WIDTH="500" CELLPADDING=3 CELLSPACING=0 BORDER=1 BGCOLOR="#FFFFCC">

<TR><TD ALIGN="Right" VALIGN="TOP"><$font_color>Department:</FONT></TD>
<TD VALIGN="TOP">|;
print &build_select_field ("dept", "$rec{'dept'}"); print qq|</TD></TR>

<TR><TD ALIGN="Right" VALIGN="TOP"><$font_color>Last Name:</FONT></TD></TR>
</TABLE>
|;

The dropdown list is not printing properly and the last name field does not look "finished". Here's a screen shot of the result:
http://www.evms.edu/test/search.gif

TIA for any insight Smile
KimL
Quote Reply
Re: Altered search form not displaying properly In reply to
There are two problems here.

It would appear that your subroutine is not being called from within a form. That's why your select field isn't working. How are you getting to this bit of code?

The problem with the Last Name field is that you haven't defined a field and you only have one table cell in the row. I would add

Code:
<TD><input type="text" name="Last Name" size="40"></TD>

before the last </TR> tag in your table.


------------------
JPD





Quote Reply
Re: Altered search form not displaying properly In reply to
JPDeni, you are terrific. I can hardly believe you've only been doing this for a year - it gives me hope Smile

I pasted the table between the # < -- Start page text -- > and # < -- End page text -- > codes, instead of after the <form> tag. Works fine now. And you were right about the <td> too, I don't know how I missed that.

Thanks again,
KimL