answersLogoWhite

0


Best Answer

using the post command.$_POST['checkboxname'];

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you post the data from an input type checkbox in a form to MySQL tables using PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you export data from MySQL to PDF using PHP?

If you know FPDF or simlar library which helps to make a PDF file, using PHP,you will be able to write to a PDF file out of data read from mysql tables.


How you can take backup of database in mysql?

It is quite easy to back up a database using dbForge Studio for MySQL. To do this, open the tool and connect to the MySQL server. In the database explorer, right-click the database you want to back up and select Backup and Restore > Database Backup. Additionally, the tool allows you to automate the backup process using Task Scheduler.


How do you convert an Excel database to a Mysql database?

1. For every sheet you have in Excel, create a matching table in MySQL database 2. Export excel data to a CSV file 3. Load the CSV files into MySQL database using one of the following: 3.1 mysqlimport - Loads tables from text files in various formats 3.2 LOAD DATA INFILE command 3.3 Create the tables with CSV storage engine, replace the CSV file in the database directory


Does PHP has frontend and backend?

PHP is a scripting language which handles logical processes based on user input Your frontend would be developed using HTML and CSS and backend developed using a database like MYSQL


How do you find the MySQL version?

There are several ways to check your current version: From the command line Using Workbench Via MySQL Client, exp. using dbForge Studio for MySQL


Is MySQL a programming language?

MySQL was written and developed using the C and C++ programming languages.


Can you use MySQL on a Mac?

Yes. You can install a MySQL instance using homebrew or other installer packages


Is it possible to include search criteria by using inverse checkbox?

False


Is It is possible to INCLUDE search criteria by using the Inverse checkbox?

false.


How do you develop software using PHP and MySQL?

I have no experience in software development, so I turn to specialists


How can the value for a checkbox be accessed through PHP?

with a form being POSTed to another page (or itself) $_POST['checkbox_name'] will give the value IF you use <input type="checkbox" name="checkbox_name" value="1" /> if you submit your form with method="get" then $_GET['checkbox_name'] will give the value. there is also $_REQUEST['checkbox_name'] which is a merging of $_GET and $_POST BUT I suggest you shy away from using this method, as its easier to debug when you know where stuff is coming from BUT checkboxes DO NOT get submitted if you dont tick them. My personal workaround to force the value being submitted is this:- <input type="hidden" name="checkbox_name" value="0" /> <input type="checkbox" name="checkbox_name" value="1" /> When the webpage goes through the form to collate the values, IF the checkbox is ticked, it will overwrite the 0 value with 1. IF not then 0 will be submitted. Hope this covers everything for you.


How do you upload an image to MySQL using PHP?

You cant upload an actual picture to MySQL, you can upload the URL but not the picture itself. You would have to upload this to your site first and then send the link to MySQL