Just a minor point...

You are creating $msg before you have made the confirmation ID. This means
your message does not contain the confirmation id as it has not been
created...

Stephen

----- Original Message ----- 
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 15, 2003 3:18 AM
Subject: [PHP-WIN] email confirmation


> /*process_a.php: which receives the name and email variables.  The script
> then tries to then send the note back to the user with a link - called
> CLICK.  When the user hits the link to email_verify.php the email address
is
> inserted into the database*/
>
> <?
>  $msg = "Thank you for registering $name\n\n";
>  $msg .= "<a
>
[EMAIL PROTECTED]/email_verify.php?email=$email&confirma
> tion_ID=$confirmation_ID>CLICK</a>";
>  $secret_variable = "something_only_you_know";
>  $confirmation_ID = md5($email.$secret_variable);
>  $to="[EMAIL PROTECTED]";
>  $subject="Thank you for registering";
>  $mailheaders="From: Us";
>  mail($to,$subject,$msg,$mailheaders);
> ?>



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

Reply via email to