I would like to create a e-form, the user can input more than one email address on textarea field.
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Name: <input type="text" name="name">
<br><br>
<textarea name="email"></textarea>
<input type="submit" name="submit" value="Submit">
</form>
When user type more than one email on the textarea.like the following image

<?php
echo $_POST["name"].'<br>';
echo $_POST["email"].'<br>'; //make the three email convert to three variable.
?>
any idea do do this???
foreach ($_POST["email"] as $email) {
// anyidea
}
$_POST["email"][0] = '[email protected]';
$_POST["email"][1] = '[email protected]';
$_POST["email"][2] = '[email protected]';
Thank you very much .