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

Laravel SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared
how to get gmail contacts with photo in php
refresh / clear / redraw page with content from a different location
Jquery and form with same name issue
Not able to match loginemail from neo 4j graph db
Why composer update updates symfony to 2.5 but it's “symfony/symfony”: “~2.4”?
PHP socket server closes when connect client to server
how to hide paypal button code from user?
How to get ID, Rel, and Text of moved node and its new parent - JSTREE v 3
Can mysqli tell you field data type and length set
csv_output containing with field . (full stop)
php when many users access a php file that writes to textfile is it done simultaneously or one at a time
Joomla Custom Form Does not Read Correct post value
Return true or false from if statements in model to use afterwards in view
How to call a parameterized stored procedure using model in laravel
Execution rights on downloaded file

Categories

HOME
php
cocoapods
memory
mc
shinyapps
ontouchlistener
paypal-ipn
bots
softlayer
ews
hdfs
ios-simulator
openfoam
facebook-android-sdk
cocotb
hspi
alljoyn
sap-fiori
csrf
pm2
freertos
asp.net-core-1.0
cloudsim
salt-cloud
pe
dashdb
pymongo
mime-types
rxjs5
substring
backendless
nurbs
beego
spreadsheetgear
crud
clipboard
onchange
bitbake
monitor
phpstorm-2016.1
fotorama
markov-chains
ftp-server
django-crispy-forms
hidden-markov-models
reset
task-parallel-library
raytracing
sendinput
music21
spongycastle
comm
popen
business-rules
instafeedjs
fitbit
wildfly-9
boost-compute
google-identity-toolkit
nclam
maven-release-plugin
powerpoint-2013
strpos
mathnet
cfwheels
auto-generate
compositetype
mod-auth-openidc
kognitio-wx2
n-tier-architecture
encryption-symmetric
full-text-indexing
xulrunner
xmi
armv6
facebook-game-groups
colon
ggts
infinite
hints
.net-remoting
spiral
oembed
onconfigurationchanged
workflow-manager-1.x
first-class
jzmq
series-40
exponent
servercontrol
will-paginate
getopts
qt-mobility
downgrade
aggregator

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App