[ic] user login dealer test...

Rick Bragg interchange-users@icdevgroup.org
Thu Aug 8 11:50:01 2002


I want to be able to test and see if a user is logged in as a "dealer" 
or not.

I have the dealer prices and everything all set up great, but i want to 
be able to test and display different messages in my pages like this:

[if data userdb::dealer::[username] =~ /1/i]
   dealer html stuff...
[else]
    regular user html stuff...
[/else]
[/if]

but it doesn't seem to work.


when I test product groups like this:

[if data products::group_field::[item-code] =~ /name_of_group/i]

it works fine, I guess I need to find the equivelent of [item-code] for 
the userdb.

but maybe there is a more secure way to test this?

Thanks

rick