I'm having a bit of a weird problem here. I have a select box (below);
.. but when you select both these users, the data is passed on like;
index.php?action=guest_list_import_do&user_to_import=John%3A%3A%3AWebb&user_to_import=Paul%3A%3A%3ABoemont
Note: %3A is equal to : , so %3A%3A%3A equals :::
If I do the following therefore;
That just prints out a parse error (invalid argument for foreach). Why is it not being assigned correctly to $user_to_import (i.e as an array) ???
I'm stumpred
Cheers
Andy
Code:
<select multiple size="10" name="user_to_import">
<option value="John:::Webb">John Webb</option>
<option value="Paul:::Boemont">Paul Boemont</option>
</select>
.. but when you select both these users, the data is passed on like;
index.php?action=guest_list_import_do&user_to_import=John%3A%3A%3AWebb&user_to_import=Paul%3A%3A%3ABoemont
Note: %3A is equal to : , so %3A%3A%3A equals :::
If I do the following therefore;
Code:
<?php
global $user_to_import;
foreach ($user_to_import as $_line) {
echo "User: $_line <BR>";
}
?>
That just prints out a parse error (invalid argument for foreach). Why is it not being assigned correctly to $user_to_import (i.e as an array) ???
I'm stumpred

Cheers
Andy