I do not clearly understand your explanation above. If you want to redirect to the main page
after showing the confirmation message for opt_in or opt_out, how about the following code?
Before trying, you need to make two files--opt_in.html and opt_out.html as shown below and
put them in public_html directory.
Code:
<a href="opt_in.html">Allow PR Mail</a>
<a href="opt_out.html">Disallow PR Mail</a>
opt_in.html
===========
<html>
<title>Your Page Title</title>
<BODY>
You have agreed to receive our
PR mail.
<meta http-equiv="REFRESH" content="2;url=http://www.the-domain-you-want-to-redirect-to.com">
</BODY>
</html>
opt_out.html
============
<html>
<title>Your Page Title</title>
<BODY>
You have rejected to receive our
PR mail.
<meta http-equiv="REFRESH" content="2;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD>
</BODY>
</html>
If a client click "Allow
PR Mail" it will go to opt_in. html, where the client will get the message
"You have agreed to receive our
PR mail", and after 2 seconds it will be redirected to the main
page. In case of clicking "Disallow
PR Mail", it will work in the same way.