I'm not entirely sure what you want to do...perhaps a bit of an example.
But I'll take a guess 😉
Let's say the user has 10 emails, and you want to display whichever emails the user chooses.
You have an array which holds each email in the same element number that it's particular ID is. (or you can use an associative array using a number, or even an email name. whichever you want to do)
Now you want to print out each html email, in their browser.
First you echo your header, like:
echo "<head><title>Your email</title></head><body>";
So if they wanted email 7, you would do something like:
echo "<h4>".$email[7]."</h4>";
You'd use a loop (for or while will work) to print one of their choices, then increment a counter to the next choice and print that out. When your done, print a footer like:
echo "<br><h4>That's all!</h4></body>;
I'm hoping this made sense if that's similar to what your trying to do, and if not...well it wouldn't of helped if it would of made sense anyway 😉
Heh, you might want to give an example of what you'd like to do to make things easier 🙂