Gossamer Forum
Home : Products : DBMan : Customization :

seperate html_view_failures

Quote Reply
seperate html_view_failures
Thanks for the syntax fix with "adding graphic after 3 recs", works great, but i've still missed my prize, so Ill try again.
My db is set up as a view only db. Users start there search from a static html page, the reuslts are returned along with a link back to the search page.
Admin is via login, which uses the standard html.pl for searching, adding ect.
The only screen that is common to both is html_view_falure, which returnes the standard search form, which I don't want users to see, so I thought of this, which by my success rate of writing Perl is probley not correct.
At the top of view_failure, should I put this.
Code:
if(db_userid eq "default")
print qq|
<$font><P>There were problems with the search. Reason:
<$error_color><B>$message</B></FONT>
<BR>Please fix any errors and submit the record again.</p><a href link to return to search page here></a>
|;
else
the standard view_failure form here
would that work.
thanks
bob
Quote Reply
Re: seperate html_view_failures In reply to
You just need some work on your Perl syntax.

Code:
if ($db_userid eq "default") {
print qq|<$font><P>There were problems with the search. Reason:
<$error_color><B>$message</B></FONT>
<BR>Please fix any errors and submit the record again.</p>
<a href = "link to return to search page here">Search form</a>
|;
}
else {
&html_record_form(%in);
}


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







[This message has been edited by JPDeni (edited July 11, 1999).]