Hi Dean,
Hey, Brett. What if you were to keep removed users in the database? Instead of using DELETE, use the command:
Basically that code is what I have - I think, here's what is at line 44 and 139 in rem.php:
update $utable set cnf = '2' where uid = '$u';
I just tested it, basically you're saying that IF I set the option to Keep Users in Database instead of removing it should act the same way right? I tried that but if I delete from THIS list , I still get the message if I later try Delete from ALL list that the User is not found:
User not found in database. Did you already click remove?
This ID no longer exists and you will not be sent any more email.
Where do you suggest I make this change in the code? Can you tell me what should be here to guarantee that I can find the uid - oops... found it, look below...
DW - ok, I changed the code in line 64 of my remall.php to read like this:
$cmd = "select id,list,fname,lname,email from $utable where uid = '$u' and (cnf = '1' or cnf = '2')";
Note I added "or cnf = '2' to the SQL select to make sure it pulls the record - even if they have been previously deleted (set to '2'). That pulls the UID up, even if they have already been set to '2' by the Delete from THIS list call - BUT, now when the user clicks the Delete from ALL button on the Delete from ALL Confirmation page, they get the message from the Delete from THIS list Success page instead of from my Delete from ALL list success page???
Can you tell me where this call is ending up (should I change 'rconf' to 'rconfall'? Where is the <Form> being submitted to in this call in my remall (line 86):
$buttoncode = "<form name=rconf method=post>
Is that correct?
oops - ok Dean I solved that one too, basically I had the wrong select in my remall.php, here's what I put in to make it select the correct Remove from ALL Success page:
$cmd = "select data from $vtable where list = '$list' and ref = 'remallsucc' limit 1";
That's it, everything works fine - it's great, if they click Remove from THIS list and try Remove from THIS list again they get the message User does not exist in Database, already removed, but if they try clicking Remove from ALL lists after they have clicked remove from THIS list they get the correct screen to let them Remove from ALL lists, clicking that gives them the success page and removes them from all lists - FANTASTIC.... does your modification work the same way? Does it also allow for custom HTML code for Remove ALL and Remove from THIS? I think that's important as I needed the extra HTML code to display different pages....
Oops - one little thing I didn't think of, there's a slight inconsistency since if they click Remove from ALL lists and then the button to remove, and then click Remove from ALL lists again (in their email) they still get the page that says 'retrieved your email from the database' - this is because of adding the extra search for the or CNF='2' option - so basically would need another flag here that they removed from ALL already - maybe set CNF='3' when they Remove from ALL would do it?
Thanks, I think we almost got it.... can't wait for that new version