$_POST['shapeType, triangleSide1, triangleSide2'];
This is not valid PHP. You'll have to concat a string like $_POST['shapeType'] . ', ' . $_POST['triangleSide1'] . ', ' . $_POST['triangleSide2']
and write that to the file.
Frage
how would i get the above to write? ive been able to write each post when doing them one at a time, but isn't there a way to write them to the file without having to do new $shapeType
entries followed by separate fwrites
over and over?
Lösung
$_POST['shapeType, triangleSide1, triangleSide2'];
This is not valid PHP. You'll have to concat a string like $_POST['shapeType'] . ', ' . $_POST['triangleSide1'] . ', ' . $_POST['triangleSide2']
and write that to the file.