php


Inserting checkbox into table produces textbox instead


I am using this code to add a checkbox to each row of a table. But, the checkbox shows up as a textbox with the ClientID in it:
while ($row = mysqli_fetch_array($query)) {
$cid=$row['ClientID'];
echo '<tr>
<td>'.$row['ClientID'].'</td>
<td><input type=\"checkbox\" name=\"checkbox'.$cid.'\" value='.$cid.'></td>
<td>'.$row['FirstName'].'</td>
<td>'.$row['LastName'].'</td>
<td>'.$row['Email'].'</td>
<td>'.$row['KDWP_Nbr'].'</td>
<td>'. date('F d, Y', strtotime($row['DOB'])) . '</td>
<td>'.$row['DriverLicenseNbr'].'</td>
<td>'.$row['PrimaryPhone'].'</td>
<td>'.$row['SecondaryPhone'].'</td>
<td>'.$row['Address1'].'</td>
<td>'.$row['Address2'].'</td>
<td>'.$row['City'].'</td>
<td>'.$row['State'].'</td>
<td>'.$row['ZipCode'].'</td>
<td>'.$row['ClientNotes'].'</td>
</tr>';
Why wouldn't it show up as a checkbox?
Remove slash
<input type="checkbox" name="checkbox'.$cid.'" value="'.$cid.'">

Related Links

multi items setup in PayPal php sdk
Codeigniter Image upload issue
Cannot insert values in database tables
Editing data in multiple columns from front-end
mpdf watermark - inclined to vertical
how to convert a json data according to requirement?
error creating dynamic events and ykeys in morris line chart
How to display jQuery variables value in PHP on the same page?
Check a 2D associated array for a string, return the information (PHP)
single-{post-type}.php is not working in wordpress
Multiple post parts in same page
PHP Method Chaining without writing lots of return this
how do i reference a dynamically created list php
Laravel Request show what form the input was captured in
Json data getting read but not inserting into mysql using php
phpunit Mock returns null while original method returns string

Categories

HOME
hpoo
nam
orientdb
xcode
add-on
navigation
bellman-ford
siesta
heuristics
fasm
business-intelligence
buffer
spring-amqp
pushdown-automaton
global-variables
android-contacts
exe
jaspersoft-studio
adminlte
jitsi
maven-surefire-plugin
router
python-appium
android-cardview
microprocessors
credit-card
python-2.x
amazon-kms
transform
subclassing
cargo
eclipse-gmf
aurelia-http-client
reset
plane
ejml
flipkart
fluid-mac-app-engine
sendinput
vesta
deployd
winmerge
gnome-terminal
dblink
fitbit
gapi
pjax
metabase
codecharge
facebook-ios-sdk
utf-16
gwt-syncproxy
currency-exchange-rates
openmrs
management-studio-express
deeplink
perceptron
http.client
ambiguity
supersocket.net
azure-xplat-cli
prism-4
scala-swing
signed
python-c-extension
baseadapter
windows-rt
relationships
oracle-adf-mobile
xcode6.3.1
mfmessagecomposeview
two.js
jini
wso2bam
property-injection
roxy-fileman
strdup
coalesce
ember-table
.net-remoting
rikulo
ofstream
asp.net-mvc-3-areas
contextswitchdeadlock
office-app
handshake
instance-variables
coordinate
kobold2d
fitch-proofs
quartz-core
affinetransform
qtextbrowser
snackjs
database-deadlocks
jquery-1.4
anonymous-types
mongrel2
aspbutton
downcasting
ntruencrypt
ning
rakudo

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App