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
- Redirect from an HTML page
- What is ' and why does Google search replace it with apostrophe?
- navigate back with PHP form submission
- Should I use tag for icons instead of ? [closed]
- How do I vertically align text in a div?
- How do I vertically center text with CSS?
- How do I vertically center text with CSS?
- What does enctype=’multipart/form-data’ mean?
- Link with target=”_blank” and rel=”noopener noreferrer” still vulnerable?
- How to make JavaScript execute after page load?
- Is there a minlength validation attribute in HTML5?
- Getting rid of bullet points from
- How to add hamburger menu in bootstrap
- What is href=”#” and why is it used?
- Should I use px or rem value units in my CSS?
- Flexbox: center horizontally and vertically
- What is the difference between id and class in CSS, and when should I use them?
- When to use instead
?
- Sort array of objects by object fields
- How to move image with css/html
- How to style the option of an html “select” element?
- HTML: How to center align a form
- How to mark-up phone numbers?
- CSS pick a random color from array
- Adding background image to div using CSS
- Center a DIV horizontally and vertically
- Make a div fill the height of the remaining screen space
- html5 error : Element head is missing a required instance of child element title
- Add image in title bar
- jQuery checkbox event handling
- Setting a max character length in CSS
- How to use the “required” attribute with a “radio” input field
- Local Storage vs Cookies
- Redirect website after specified amount of time
- PHP array printing using a loop
- External CSS not working
- How to exclude particular class name in CSS selector?
- Is there a float input type in HTML5?
- Is there a vr (vertical rule) in html?
- How to view an HTML file in the browser with Visual Studio Code
- How to create a hidden
in JavaScript?
- CSS “and” selector – Can I select elements that have multiple classes?
- How do I programmatically set the value of a select box element using JavaScript?
- WordPress custom taxonomy description for each post?
- Conditional statement for parent, child and grandchild pages
- Accessing WordPress data via JSON gives HTML data for certain keys
- How to prevent pages from automatically adding line breaks?
- How Display Posts on category
- ACF page while loop breaks footer while loop
- Embed html in php code
- Firefox CSS Animations Broke [closed]
- Position banner to right of logo in header – messed up my header file
- Syntax error when I try to insert my loop into an unordered list? [closed]
- How to make modifications only to certain elements of an HTML string on the server-side?
- Printing HTML codes
- Inline style HTML attribute is being stripped from all elements of a post
- Unfamiliar HTML Properties in Avada and Divi Themes [closed]
- How to retrieve the data from the sever and displaying it in a page?
- wp_insert_post() with HTML tags using PHP
- #text at the begging of every page, before the main content block
- Remove   from the_excerpt
- Https and Http for iFrame
- Excerpt keep stripping tags
- Show preview of wordpress posts on external html sever
- html form: redirect page after form completes submit function and posts data
- Add other class content with reference class value
- Configure WordPress to Use Responsive Image Rendering
- HTML comment cause issue in functions.php script root
- Slug duplicates once clicking on link
- How to change a wordress plugin php code in my child’s functions.php file?
- How to find and delete a menu item in php?
- make p tag collapsed after 3 rows
- My single.php page skips the first div tag
- How to display post meta bellow every posts
- Where to find HTML to post Adsense Code
- An extra is appearing in my source code–how do I diagnose the source?
- Switch position of elements in the footer [closed]
- WordPress HTML Helper
- get_post_meta is always empty when I use wp_mail
- Link opens a new website instead of my own
- how i can change wordpress post views?
- Configuration Options for embedded YouTube Videos
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to modify default tags in wp_head()