I have a php script that has taken user input from a html page and created a list. I want to be able to email that list to the user, and already have the user's email address from the html page.
So far, when the user hits 'email me the list' I can get the program to automatically open the person's outlook program. I want to be able to copy and paste the list into the email document, or at least copy and paste the link to the page where the list exists.
Any help would be appreciated.
Thanks
Andrew
EDIT:
HTML FORM:
<strong>Email Address</strong><FONT COLOR="#FF0000">*</FONT>:
<input type="text" name="emailaddress2"/>
<input type="submit" value="Submit"/>
PHP :
//THE LIST I NEED TO SEND, AND THE EMAIL FUNCTION
$FoodList=array_unique($FoodList);
if(!empty($FoodList))
{
foreach ($FoodList as $key => $value)
{
echo "<li>" . $value . "</li>";
}
echo "</ul>";
}
<a href="mailto:<?php echo $_POST['emailaddress']; ?>">Email me List</a>
(So basically I want the list pasted into the email)