Tagged Questions
1
vote
0answers
87 views
PHP checkbox keeping it unchecked
The code is given below
input type="checkbox" name="coverpage" id="cp_switch" value="0" onchange="chgtx();
My requirement is to "keep the check box" unchecked by default. Checked attribute is not ...
1
vote
0answers
459 views
PHP array checkbox and radio default value
I have the code below in my wordpress options page. I can't define the default values for checkbox and radio.
array(
"name" => "Post Thumbnails",
"desc" => "Choose if you want to ...
0
votes
0answers
43 views
Issue with getting values of checkboxes checked in HTML form in PHP
I have a HTML form that I build using php like this:
<div class="modal-body">
<?php
$getW = "SELECT personID, firstName, lastName FROM person";
$wResult = ...
0
votes
0answers
75 views
Using foreach loop to checked checkbox answer
Currently, I have a column in database called answer to store all the answers for the form submitted. For now, the form itself have a "save" button whereby user can save the form if they're not free ...
0
votes
0answers
51 views
Implode checkbox values with this operator in php
In this contact form Website Link there are four checkboxes. How needs to be integrated the implode(', ', $interessen); in the code part $message .= "<tr><td><strong>Interessiert ...
0
votes
0answers
57 views
trouble getting php checkbox values to show up in resulting email
I've been looking for an answer for hours, and have tried multiple solutions from these boards and others, and I still can't find the answer.
I'm really only looking to receive the checkbox data from ...
0
votes
0answers
104 views
how to save checkbox value in paging with php
Hi im newbie in programming.. I made so list in those list i have a checkbox
If i checked the first page.. it doesnt matter but if i change to the next page the checkebox in the first page was gone.. ...
0
votes
0answers
72 views
Generate PDF from more 1 checkbox
Here is my issue. I want to choose some entries and post them to PDF document. When I choose 1 entry I getting document but I have blank document when I choose more 1 entries.
echo '<form ...
0
votes
0answers
42 views
chrome checkbox display with php
If I load the following code in jsfiddle.net (in Chrome), it works fine. But on its own as a page in Chrome, it loads OK for a second and then overrides the "checked" status. Instead of displaying the ...
0
votes
0answers
171 views
adding multiple checkbox values from recordset to two different tables
I have a page for adding products into a database, its fine until i try to add the colour options to the database.
My table structure is :
Products - (various product fields, name, description, ...
0
votes
0answers
101 views
Checking the value of two checkboxes and entering a corresponding value into a database PHP
So what I am trying to achieve is I have two checkboxes. One is for employee completion and the other for manager. The action I want when BOTH are checked (have a value of 2) is to check the the ...
0
votes
0answers
96 views
Bind checkbox to database filed and enable updates
I am creating an attendance system for a college. I wanted to show all the data from the student table which would enable the user (staff) to mark the student present or absent.
In MySQL, this is the ...
0
votes
0answers
130 views
How to display mysql records as preselected checkboxes from database?
sql3 = "SELECT activityid FROM ActivityShare where companyid = '$branchid'";
$result3 = mysql_query($sql3);
while($row3=mysql_fetch_assoc($result3)){
//$post_tags = "1@2@";
$post_tags= ...
0
votes
0answers
172 views
PHP keep checkbox ticked in checkbox array after submit error
I have looked through stackoverflow and can't seem to find exactly what i am looking .I am trying to figure this out and have spent a few hours on it so far.
I have database results being outputted ...
0
votes
0answers
86 views
Select checkbox and get results from particular id
Hi all when user select one check box automatically the check box id results will come from database is it possible?
<tr>
<td height="25" align="center" valign="middle" ...