I'm not quite sure where I'm going wrong :(
if(isset($_POST['finish'])){
$objectives=addslashes(strip_tags($_POST['item']));
foreach ($objectives AS $objective) {
echo "$objective <br />";
}
}
It's not showing anything.. what have I missed out? I'm trying to get data from multiple input entries..
<input class="item" id="objectives" name="item[]" />
Any ideas?
addslashesandstrip_tagswork on string literals, not arrays.error_reporting(E_ALL)would have told you that immediately.$_POST['item']is an array