I have a cgi script that registers users with a email account on another server.
If all goes well and there are no errors, its fine.
but if there is an error, th server returns a raw code such as BAD_USER_NAME
( which is printed as $err )
this isnt very user friendly. I tried using an IF $err eq 'bad' whatever but I found
if there is more then one error, $err would be something like BADUSERNAMEBADPASSWORD
so It wouldnt work
my question is, how could I get past this? Could someone assist me thanks.