RE: [PHP] HTML...
| From: | Van Andel, Robbert | Date: | Mon, 16 Jun 2003 16:29:28 +0000 |
| Subject: | RE: [PHP] HTML... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151681@lists.php.net to get a copy of this message | ||
I believe the variable passed is actually an array ($email_recipients[0],
$email_recipients[1]...etc).
Robbert van Andel
-----Original Message-----
From: Johnny Martinez [mailto:jmartinez@citrusglobal.com]
Sent: Monday, June 16, 2003 9:27 AM
To: php-general@lists.php.net
Subject: [PHP] HTML...
Hi all,
I'm trying to send an email to multiple recips but for some reason the
<Select> isn't passing "multiple" <options>...Does anyone see a problem
with
this code? Do I an array or something to handle the passed multiples?
Johnny
============================================
page_1.php:
<html>
<body>
<form action='page_2.php' method='post'>
<select name='email_recipients' size='6' multiple>
<option value='0' selected>NONE</option>
<option value='email1@citrusglobal.com'>Andreas</option>
<option value='email2@citrusglobal.com'>Doreen</option>
<option value='email3@citrusglobal.com'>Elvin</option>
</select>
<input type='submit' name='action' value='Add'>
</form>
</body>
</html>
=====================================
page_2.php
<?php
$email_recipients = $_POST['email_recipients'];
print "<br>" . $email_recipients;
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php