On Thursday 14 August 2003 12:19, you wrote:
> Thanks for the reply Jackson.
>
> It's non-profit.
cool
>
> I guess I'm looking for a randomly generated string that would append to
> the users e-mail address so that it could be matched when the user clicked
> the link and submitted it back for inclusion in the mySQL database.
Oh, ok.  that is much simpler than what i thought you were looking for.

You can generate a unique by doing something like this on the script that 
processes the signup form:
$email = [user_supplied_email];
$secret_variable = "something_only_you_know";
$confirmationID = md5($email.$secret_variable);

Then the dynamic url for email confirmation would be something like:
http://your_domain.com/email_verify.php?email=$email&confirmationID=$confirmationID

Then the email_verify.php page would have something like the following:
<?php
$secret_variable = "something_only_you_know";
if ($_GET['confirmationID'] = md5($_GET['email'].$secret_variable)) {
    // insert the user into the database
} else {
  // display an error message
}
?>

If you are collect more than just an email address (i.e. name, password, etc), 
then you will want to insert on the signup script and then update that record 
based on the email address (which should be unique).  You would need to have 
a field in your member table that denotes pending and active pages.

Hope this helps,
-Jackson


>
> If the e-mail address was bogus - the user wouldn't recieve the note from
> the server.
>
> If the e-mail address was valid - but the user didn't -in fact - supply it
> - say it was suplied from someone else - chances are it would be discarded.
>
> If the e-mail address was valid - and the user did supply it - a randomly
> generated string would be appended to the e-mail address for a match into
> mySQL.
>
> Please advise.
> Thank you.
> TR
>
> ---
> [This E-mail scanned for viruses by gonefishingguideservice.com]

-- 
jackson miller
 
cold feet creative
615.321.3300 / 800.595.4401
[EMAIL PROTECTED]
 
 
cold feet presents Emma
the world's easiest email marketing
Learn more @  http://www.myemma.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to