I\'m wanting to store basic data from a single form box and I\'ve created this php code base, but it doesn\'t seem to be working. Can someone take a glance and see if anything
This part will not behave like you expect, the variables are not evaluated when inside single quotes:
$cvsData ='"$name","$date"'.PHP_EOL;
You will need to use double quotes:
$cvsData ="\"$name\",\"$date\"".PHP_EOL;