Gossamer Forum
Home : Products : DBMan : Customization :

I found a mistake in JPDeni's "More Info Mod" - Fixes "Email in wrong format" bug

Quote Reply
I found a mistake in JPDeni's "More Info Mod" - Fixes "Email in wrong format" bug
Hey there fellow dbman lovers! I have been so frustrated over Carols “More Info” mod that I was just about ready to quit! But then, in a moment of Glory I found what was causing the problem.

If you are trying to use the More Info mod, and you run into email format problem, then try changing

Code:
sub more_info {
unless ($in{'email'}) {
$message = "You must enter your email address";
}
unless ($in{'$email'} =~ /.+\@.+\.+/){
$message = "<font Color=”red”><b> Your email address is not in the correct format. Please try again.</b></font>."
# }
if ($message) {
&html_more_info_form;
return;
}

TO

Code:
sub more_info {
unless ($in{'email'}) {
$message = "You must enter your email address";
}
unless ($in{'email'} =~ /.+\@.+\..+/)
{
$message = "<font Color=”red”><b> Your email address is not in the correct format. Please try again.</b></font>."
}
if ($message) {
&html_more_info_form;
return;
}



If you can pick out the difference you have good eyes… but it is there, and it does change the whole thing!

Smile Smile Smile
Subject Author Views Date
Thread I found a mistake in JPDeni's "More Info Mod" - Fixes "Email in wrong format" bug dataKing 1422 Dec 2, 1999, 5:15 PM
Post Re: I found a mistake in JPDeni's "More Info Mod" - Fixes "Email in wrong format" bug
Eliot 1345 Dec 4, 1999, 9:29 PM
Post Re: I found a mistake in JPDeni's "More Info Mod" - Fixes "Email in wrong format" bug
dataKing 1343 Dec 4, 1999, 9:32 PM