Here is a little example of what I’m trying to figure out. If anyone could help me out I would be greatly appreciative. I hope I provided enough info in the comments.
[php]<?
$array = array(‘one’, ‘null’, ‘three’, null, ‘five’); // Data gathered from form into an array
foreach($array as $value) {
if($value != null) { //I want to list only values inserted from the form
$item = "<li>$value </li>";
$string = "String used by external PHP script <br />
List of items: $item"; // I can't seem to get the array data to list here.
// This is only printing the last value in the array.
}
}
?>[/php]