Question

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?

Était-ce utile?

La solution

$_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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top