this is simple multi select form which select users and pass to input users
<form method="post" action="">
<input name='input1' type='text'/>
<input name='input2' type='text'/>
<input name='input3' type='text'/>
<select name="user[]" multiple="multiple" ondblclick="this.form.submit()">
<option value="1">user1</option>
<option value="2">user2</option>
<option value="3">user3</option>
</select>
<input type="text" name='selectedusers' value="<?php
if (isset($_POST['user'])){
$con = $_POST['user'];
foreach($con as $user_single)
echo '-'.$user_single; }
?> "/>
<input type="Submit" value="abc" name="abc" />
</form>
now here the idea is to keep the input1, 2 and 3 which was input lastly, and make select. but here if i use multi select the previous input gets blank.
How i can keep the previous input values and make multi select pass the selected value to input name selectedusers and submit form..
regards