I have a PHP file that tries to echo a $_POST and I get an error, here is the code:
echo "<input name='C' value='$Texting[$i]' " .
echo '<input type="submit" value="Save The Table" name="G"></input>'
Notice: Array to string conversion in
C:\xampp\htdocs\PHIS\FinalSubmissionOfTheFormPHP.php on line 8
When you have many HTML inputs named
C what you get in the POST array on the other end is an array of these values in
$_POST['C']. So when you
echo that, you are trying to print an array, so all it does is print
Array and a notice.
To print properly an array, you either loop through it and
echo each element, or you can use
Alternatively, if you don't know if it's an array or a string or whatever, you can use
var_dump($var) which will tell you what type it is and what it's content is. Use that for debugging purposes only.