Thank you very much for your suggestions.
I actually used 'sunfighter' suggestion. I understood it better.
However, I had a lot of work to do (for me) to get the script working how I wanted it to work.
The script is a 'double opt-in' script (I don't want false email addresses).
The original script had a $action=subscribe field sent from the form.
It then sent out an email to the given email address, with the required info to click on and send the info back to the script.
In order to use UPDATE feature, I had to include an $action=change in the validation email that was sent out to be clicked on.
I also used md5("$secret_code $formatted_email") as an extra validation.
Because I am a novice, it took me quite a while to get it right, but it now works.
Thank you very much.
The MAN, The MYTH, The LEGEND:
Support your local Country Music Club