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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top