About 926,000 results
Open links in new tab
  1. How do I insert multiple checkbox values into a table?

    <input type="checkbox" name="Days[]" value="Daily">Daily<br> as array. Add [] to all names Days and work at php with this like an array. After it, you can INSERT values at different columns at db, or use implode and save values into one column.

  2. PHP - Simple Insert Multiple Checkbox Data | SourceCodester

    Jul 8, 2019 · Learn on how to create a Simple Insert Multiple Checkbox Data using PHP. A simple php code that can insert multiple checkbox entries to the database server. This is useful when you want to bulk submit a data in just one process.

  3. How do I insert the value from a checkbox into MySQL?

    Jun 5, 2011 · You can use field[] <input type="checkbox" name="field[0]" value="1"> <input type="checkbox" name="field[1]" value="1"> So you can do a simple loop: for($i=0;$i<5;$i++) $field[$i] = isset($_POST['field'][$i]) ? 1 : 0; And then build your SQL

  4. php - insert multiple checkboxes in one column of a table using implode

    Aug 13, 2015 · Only use: $engine1 = implode(',', $_POST['engine1']); $engine2 = implode(',', $_POST['engine2']);

  5. Inserting Multiple Checkbox Values into a Database Using PHP

    Aug 16, 2023 · In this article, we will learn how to store multiple checkbox selections from an HTML form into a MySQL database using PHP. Follow this complete article to understand the process, including creating the database table, writing PHP …

  6. How to insert multiple checkbox values in database in PHP

    Apr 16, 2020 · We can insert multiple checkbox values in a single column in the database in PHP with the help of an implode function in the form of an array.

  7. How to Insert Multiple Checkbox Data using PHP - CampCodes

    Aug 3, 2021 · In this tutorial, we will create on How to Insert Multiple Checkbox Data using PHP. This code will allow the user to insert multiples checkbox data to the database server in one click.

  8. php - Reading checkbox values using implode function - Stack Overflow

    Jun 19, 2012 · if(isset($_POST['Submit'])) { echo "<pre>"; print_r($_POST); $checked = implode(',', $_POST['checkbox']); echo $checked; } here's the exact stuff I put in my test.php

  9. INSERT values into mysql table with PHP using checkboxes

    Nov 1, 2011 · how to solve the second problem depends on how you tackle the first one. generally, for the insert you could do with a few lines of verification and one line for the SQL. $res = mysql_query("INSERT INTO Members (Technique) VALUES (" . implode("), (", $_POST) . ")";

  10. How to Insert Checkbox Value into database in PHP MySQL

    May 15, 2021 · In this article, you will be learn that how to insert checkbox values into mysql database in php mysql, which the data will be fetch from input checkbox with form tag on submit and send the input checkbox values to mysql query, so it …

  11. Some results have been removed
Refresh