Problem in entering multiple E-Mail ID in A Single Field
<p><em>Hi</em> I had A field In Than i am enter the multiple e mail id using the  automated dropdown . I refer this link "http://wick.sourceforge.net/wick_sample/"  U get the Full view about my program in this link.
In This all e-mail id's are stored in the variable collection. My problem is if i declare the E-mail id directly in the variable  like This</p>

<p>var data  = ['meena@gmail.com','raam@yahoo.com','priya@group.com','priya@group.com'];</p>

<p>collection = data;
Its Working properly but  i am retrieve the e-mail Id from the Database . so i am using below mentioned code but it does not  work how i solve this issue .</p>

<pre><code>function show_alert() {

    var id1 = document.getElementById('collection').value;


    var data = [id1];

    collection = data;


    alert(collection);
}

&lt;?php

$table = "am_users";
$query = "select distinct(`user_email`) from $table";
$result = mysql_query($query);

$num_rows = mysql_num_rows($result);


while ($data1 = mysql_fetch_array($result)) {
    $data[] = $data1['user_email'];
}

foreach($data as $search_term) {
    $js_data[] = "/'".$search_term."/'";
}


$collection = implode($js_data, ",");


?&gt;

&lt;html&gt;
    &lt;head&gt;

    &lt;/head&gt;
    &lt;body&gt;

        &lt;input type="text"  id="collection" name="collection" rows="5" cols="30" value="&lt;?php echo $collection; ?&gt;" onChange="show_alert()" /&gt;

    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Please Guide me,have a nice day to every one</p>
