Gossamer Forum
Home : Products : DBMan : Customization :

Displaying selections of the html.pl file

Quote Reply
Displaying selections of the html.pl file
I need to display one of two segments of my html.pl file dependant on whether $rec{'validated'}=yes or no

What code do I need to use, Ive seen the code for displaying the user authorities and it looks like it may work in this case, can anybody clarify how I should do this?

Thanks, Gaslight.

Quote Reply
Re: Displaying selections of the html.pl file In reply to
Code:

if ($rec{'validated'} eq 'yes') {
print qq|something|;
}
else {
print qq|something else|;
}
JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Displaying selections of the html.pl file In reply to
if ($rec{'validated' eq "yes"){
print qq| write you display stuff |;
}else{
print qq| write alternate display stuff |;
}

that code should do it, it has worked on other variable for me, tho I have never used it with a record field, but it should work.

Dan
www.dbmasters.net