Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Feature: Enter email address twice

Quote Reply
Feature: Enter email address twice
I know a significant percentage of users enter the wrong email address by mistake. Personally I don't want to use the emailed Verification feature, but I would like to see the signup form adjusted to ask users for their email address twice, like you do for the password. Is this something you could build in to the next release?


Regards

Jason

Quote Reply
Re: Feature: Enter email address twice In reply to
This would be REAL easy to add...

1) Add the following codes in the signup script:

Code:

if ($IN->param{'email2'} ne $IN->param{'email'}) {
$error = qq|You did not enter the same email address.|;
}


Then add the following codes:

Code:

if ($error) {
chomp($error);
&site_signup_failure (error => $error);
return;
}


2) Then add the following form fields in your signup templates:

Code:

<input type="text" name="email2" size="40" maxlength="255">


(NOTE: Some of these codes will need to be hacked further to work with GM.)

Regards,

Eliot Lee
Quote Reply
Re: Feature: Enter email address twice In reply to
$IN->('email') and $IN->('email2') will cause errors.

You need to use param!!

$IN->param('email');
$IN->param('email2');


Installations:http://wiredon.net/gt
MODS:http://wiredon.net/gt/download.shtml

Quote Reply
Re: Feature: Enter email address twice In reply to
Could someone edit and test the signup script to do this? I'm not a programmer, even though it's simple wouldn't know where to start.


Regards

Jason

Quote Reply
Re: Feature: Enter email address twice In reply to
Why don't you simply copy the signup script and subs and also template files and then make the changes in the copies?

Regards,

Eliot Lee
Quote Reply
Re: Feature: Enter email address twice In reply to
Because I asked if someone else could do it, someone who knows what they're doing. For example,

>1) Add the following codes in the signup script:
>
>if ($IN->param{'email2'} ne $IN->param{'email'}) { $error = qq|You did not enter the same email address.|;}

Where? At the bottom? In the middle somewhere?

>Then add the following codes:
>
>if ($error) { chomp($error); &site_signup_failure (error => $error); return;}

Where? Straight underneath?

Not forgetting:

>$IN->('email') and $IN->('email2') will cause errors.
>
>You need to use param!!
>
>$IN->param('email');
>$IN->param('email2');

Shall I assume Paul is right? Or maybe there's more bugs or maybe I should take a programming course, which I have no interest in, just to work out any further bugs that may crop up.


Regards

Jason

Quote Reply
Re: Feature: Enter email address twice In reply to
I was pointing out that Eliot's code was incorrectly formatted and since then he has edited his code to use the correct syntax.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Feature: Enter email address twice In reply to
But could you answer the other questions? As I am still no closer to achieving what I originally asked.


Regards

Jason

Quote Reply
Re: Feature: Enter email address twice In reply to
Hi,

We've added that to our enhancement list.

Cheers,

Alex

--
Gossamer Threads Inc.