Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top