I’m in a beginner PHP class and need help with a project. We need to create a distribution table in which we collect as many student grades as the user enters and then they put it into a table. I know we have to use some sort of explode/implode function but I can’t get it to work, I feel like I just have the basics down. I have also set up an HTML page which is why I am using the “POST”. This is what I have so far…
[php]
<?php echo "Student ID | "; echo "Score | "; echo "Letter Grade |
---|---|---|
"; $StudentID="$_POST[user]"; $ID=explode(",",$StudentID); echo implode(",",$ID); echo " | "; $Score="$_POST[scores]"; echo $Score; echo " | "; $grade=$Score; if($grade>="0" && $grade<"60"){ print "You have a F"; echo " |