I've got a problem... I used this script to get the result of multiple select boxes
http://www.onlinetools.org/tricks/using ... select.php
- Code: Select all
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="test[]" multiple="multiple">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
<option value="four">four</option>
<option value="five">five</option>
</select>
<input type="submit" value="Send" />
</form>
<?php
$test=$_POST['test'];
if ($test){
foreach ($test as $t){echo 'You selected ',$t,'<br />';}
}
?>
Now I want to save the result as just one string. E.g. I select one and four the string should be "one four" to be saved in the database.
Can anybody help me out?


