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 print_r
.
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.
Related Posts:
- count(): Parameter must be an array or an object that implements Countable error in php
- count(): Parameter must be an array or an object that implements Countable error in php
- Parse error: Syntax error, unexpected end of file in my PHP code
- Parse error: Syntax error, unexpected end of file in my PHP code
- Parse error: Syntax error, unexpected end of file in my PHP code
- Double click and run the Php script on mac
- localhost/test.php returns nothing
- What are .tpl files? PHP, web design
- How to call a PHP function on the click of a button
- How to call a PHP function on the click of a button
- How to read if a checkbox is checked in PHP?
- Document Root PHP
- How to use PHP inside css file
- PHP Include Nav-bar For Every Page Techniques?
- How to create a text box in PHP to output data
- HTML vs SHTML vs PHTML
- Is HTML considered a programming language? [closed]
- Open source social media icons to download and use on website? [closed]
- How to make a monopoly board using css grid?
- How to add a browser tab icon (favicon) for a website?
- Redirect from an HTML page
- Redirect from an HTML page
- What is ' and why does Google search replace it with apostrophe?
- What’s the difference between ” ” and ” “?
- navigate back with PHP form submission
- Should I use tag for icons instead of ? [closed]
- Open link in new tab or window [duplicate]
- Half circle with CSS (border, outline only)
- Line break in HTML with ‘\n’
- CSS calc width and height values
- Difference between “as $key => $value” and “as $value” in PHP foreach
- HTML encoding issues – “” character showing up instead of ” “
- How to horizontally center an element
- Center image using text-align center?
- Unblur content inside blurring background div
- Adding a favicon to a static HTML page
- Failed to load resource: the server responded with a status of 404 (Not Found) css
- Edit webpage with javascript trick – how to “unedit”?
- See answer keys in Google Form (quiz) source page?
- CSS Background Opacity [duplicate]
- How to add elements to an empty array in PHP?
- Angular, image not found (GET 404)
- what do
- CSS Background Opacity [duplicate]
- reCAPTCHA ERROR: Invalid domain for site key
- Array to String PHP?
- Android WebView err_unknown_url_scheme
- Customize icon for “Add to home screen”
- How to create an HTML button that acts like a link
- What do < and > stand for?
- What’s the difference between HTML ‘hidden’ and ‘aria-hidden’ attributes?
- How to create an HTML button that acts like a link
- Can I force a page break in HTML printing?
- How do I vertically align text in a div?
- What is the difference between HTML tags and ?
- Hide scroll bar, but while still being able to scroll
- CSS background-image-opacity?
- How to create an HTML button that acts like a link
- Resize image proportionally with CSS?
- What character encoding is >?
- HTML 5: Is it
,
, or
?- What is the main difference of
and- Setting table column width
- How do I vertically align text in a div?
- What does In html mean
- How to set a border for an HTML div tag
- How can I center text (horizontally and vertically) inside a div block?
- iframe refuses to display
- Embed image in a
- Setting table column width
- Why does z-index not work?
- How do I vertically center text with CSS?
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- What is difference between png8 and png24
- Center image horizontally within a div
- Draw Circle using css alone [duplicate]
- How to get a tab character?
- Failed to load resource: the server responded with a status of 404 (Not Found) css
- Why does z-index not work?
- How do I vertically center text with CSS?
- What does do?
- Is it possible to write data to file using only JavaScript?
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- What is the difference between
and ?- What does enctype=’multipart/form-data’ mean?
- How to center an iframe horizontally?
- Can I have an onclick effect in CSS?
- Which characters need to be escaped in HTML?
- Image is not showing in browser?
- Link with target=”_blank” and rel=”noopener noreferrer” still vulnerable?
- Adding a background image to a
element- How to style a checkbox using CSS
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Add hover text without javascript like we hover on a user’s reputation
- Transparent CSS background color
- Loop through an array php
- What does do?
- How to get a tab character?
- Is it possible to write data to file using only JavaScript?
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP