Gossamer Forum
Home : Products : DBMan : Installation :

How do I do a search from a normal html code?

Quote Reply
How do I do a search from a normal html code?
go to http://www.it-g.com/track.html ,
I want to let the user search for their warranty no. and I dont know how to do it.

pls take a look at the code.
Quote Reply
Re: How do I do a search from a normal html code? In reply to
erh.sorry.wrong question.

Should be....If the user enter a number which is not in the database..I want it to show something like " Please enter the correct Warranty No. again"

isit possible? thats for the default user only
Quote Reply
Re: How do I do a search from a normal html code? In reply to
In html.pl, sub html_view_failure after

<p><center><$font_title><b>
Search Failed
</b></font></center><br>

change the rest of the subroutine to

Code:
|;
if ($db_userid eq "default") {
print qq|Please enter the correct Warranty No. again.

# Then add your simplified search form structure here.
# Do not include the beginning form definition, or the hidden fields
# They are already part of the subroutine.
|;
}
else {
print qq|<$font>
<P>There were problems with the search. Reason:
<FONT COLOR="red"><B>$message</B></FONT>
<BR>Please fix any errors and submit the record again.</p>
|;
&html_record_form(%in);
&html_search_options;
print qq|</p>
</font></p>
<p><center> <INPUT TYPE="SUBMIT" NAME="view_records" VALUE="View Records">
<INPUT TYPE="RESET" VALUE="Reset Form"></center></p>
|;
}
&html_footer;
print qq|
</td></tr>
</table>
</form>
</body>
</html>
|;


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