I want to add elements by the browser into an array with the name $map
I wrote the next piece of code for this:
<?php $var = $_POST["var"]; function addIntoArray($var) { global $map; if (($var != ".") || ($var != "..")) { array_push($map, $var); echo $var . " succesfully added to the array!"; } return; } ?>
The problem though, is not having an error code, but the screen just does not give an output at all while I did make an echo line.
Whats going wrong here?