i have an array that stores different id numbers (for example, 1, 7, 10, etc.) coming from selected items from several checkboxes ("DocID") in a previous php page.
i can use implode to print the whole array and it does ok, my problem is when i try to print the resulting id numbers concatenated with a string.
the string is "http://localhost/oge/detail.php?doc_id=
The resulting text should be (ammount of ids is variable):
and this concatenation should be displayed to a text area.
See my code:
$SelectedDocuments = implode("\n", $_POST['DocID']);
foreach ($SelectedDocuments as $key=>$value)
print("<td><textarea name='detail' cols='50' rows='4' id='detail'>$value</textarea></td>");