sure!
but i need some questions answered first..
where are the members email address kept? in a mysql table? if not... make one! call it email_list
then do something like this.
$there_email=$_POST['email']; //This is the field name where the user enters there email
$query=("INSERT into email_list $there_email");
$result=mysql_query=($query, $db);//where $db is the connection to the email database.
then when you sent to email the email. just make the mail command pull the to field of your message from the mysql server.
However.. if you users email address is all rdy stored in a mysql database and you just want them to click a buttion and not have to enter any thing else...
then do something like this.
make the link something special. Like the href take something like this
addme.php?d=add_my_email
//your addme.php file
$user=$_SESSION['username'];
if($_GET['d']==add_my_email)
{
$Get=("Select email from users where username='$user'");
$get_query=mysql_query=($get, $db); //where $db is the database connector
$get_result=mysql_fetch_assoc($get_query);
$there_email=$get_result[0];
$add=("INSERT into email_list '$email'");
$add_query=mysql_query($add, $db) //where $db is the databse connector
echo 'Sucess! rbblue8 does rock!';
that code is with not knowing your setup. if this is not what you looking for.. please repost with your script so i may fine toon it for ya. 🙂 and please remember your php script tages.