203 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for nitin1

Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" name="status_2" value="1" /> <input type="hidden" name="status_3" value="0" /> <input type="checkbox" id="status_3" name="status_3" value="1" /> <input type="submit" /> </form> I was …

Member Avatar for AndrisP
1
476
Member Avatar for Lethugs

Hi under this event Private Sub dgSO_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgSO.CellContentClick if user click the checkbox in datagridview, a window pops up and ask data when user press escape (no data input), the popup form will dispose and the checkbox should be unchecked This code …

Member Avatar for Santanu.Das
0
891
Member Avatar for Lethugs

Hi, I have 2 checkboxes in a datagridview I added this code Private Sub dgSO_CurrentCellDirtyStateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgSO.CurrentCellDirtyStateChanged If dgSO.IsCurrentCellDirty Then dgSO.CommitEdit(DataGridViewDataErrorContexts.Commit) End If End Sub and when user click the checkbox, i used this code Private Sub dgSO_CellContentClick(ByVal sender As Object, ByVal e …

Member Avatar for Santanu.Das
0
329
Member Avatar for janicemurby

Hi i have got multiple check box working in test file but when i try and put it and check box all i get is array i put this bit in profile.php $length = count($interests); for ($i = 0; $i < $length; $i++){ echo $interests[$i]; echo '    '; } ?> in …

Member Avatar for minitauros
0
260
Member Avatar for janicemurby

hi im attempting to add a multiple checkbox with a few options see html code <form method="post"> <table width="900"> <tbody> <tr> <td width="900"><input name="interests[]" id="option1" value="option1" type="checkbox">option1</td> <td width="900"><input name="interests[]" id="option2" value="option2" type="checkbox">option2</td> <td width="900"><input name="interests[]" id="option3" value="option3" type="checkbox">option3</td> </tr> <tr> <td><input name="interests[]" id="option4" value="option4" type="checkbox">option4</td> <td><input name="interests[]" id="option5" value="option5" …

Member Avatar for cereal
0
312
Member Avatar for FarrisFahad

Hello, I have created a small CSS checkbox and radio buttons. But the problem is that when I check only one, all of them check with that one. So I can't check a single box. Can you check the code a tell me what is wrong. here is the page …

Member Avatar for diafol
0
241
Member Avatar for berserk

I have found several different methods for doing this online but for some reason i just cant get any of them to work for me, it may be they way im calling them or something but it also might involve my lack of expereince with JS but regardless I have …

Member Avatar for AleMonteiro
0
5K
Member Avatar for yankeefan24

Im trying to check checkboxes based on a cfselect selection. Im trying .prop but is not passing the info to the check box I added p#testing.html to see if the query was working and it is passing info as text based on selection but not to checkbox function roleCallback(text) { …

Member Avatar for yankeefan24
0
356
Member Avatar for fireburner29

how to insert multiple checkbox values in multiple rows mysql database using php pdo? Please give multiple insert option Here is my script: $create = sizeof(isset($_POST['create']) ? $_POST['create'] : array()); $edit = sizeof(isset($_POST['edit']) ? $_POST['edit'] : array()); $delete = sizeof(isset($_POST['delete']) ? $_POST['delete'] : array()); $view = sizeof(isset($_POST['view']) ? $_POST['view'] : …

0
193
Member Avatar for CodyOebel

Can someone please tell me why when I check one of my boxes, and click the button I get no message box in accordance to which checkbox I checked. #include <windows.h> #include <dos.h> #include <stdlib.h> #include <fstream> using namespace std; #define IDC_MAIN_BUTTON 101 // Button identifier #define IDC_MAIN_EDIT 102 // …

Member Avatar for CodyOebel
0
944
Member Avatar for kaprikorn07

Hi All, I have a PHP code to display table data with a column of checkboxes used to click to mark the test case as Blocked. I am trying to save the state of checkbox after it is submitted, but I am unable to do so. Please help! echo "<form …

Member Avatar for gabrielcastillo
0
2K
Member Avatar for maxbummber

I am trying to learn how to use jQuery and I stumbled upon this code and the requirements below: * disable all the cells from "Every Monday" till "Every Sunday" as the initial status; * make "Never" exclusive from all the rest of options in the same row; * make …

Member Avatar for pritaeas
0
351
Member Avatar for ultmt.punisher

I am trying to check only selected domain extensions using check-box but it check all domain extensions existing in array. here is what I am trying. $name_domain = trim($_POST['domain_name']).$_POST['suffix']; $domains = array( ($name_domain) ? trim($_POST['domain_name']).$_POST['suffix'] : '', (isset($_POST['_org'])) ? trim($_POST['domain_name']).'.org' : trim($_POST['domain_name']).$_POST['_org'], (isset($_POST['_net'])) ? trim($_POST['domain_name']).'.net' : trim($_POST['domain_name']).$_POST['_net'], (isset($_POST['_biz'])) ? trim($_POST['domain_name']).'.biz' …

Member Avatar for cereal
0
490
Member Avatar for berserk

I need to add a check box on the end of each value in my html table that will be checked if the user would like to remove that value from the mysql database, my current cod elooks like this: <?php $con = mysqli_connect("localhost", "root", "", "numbers") or die(mysqli_error($con)); // …

Member Avatar for diafol
0
2K
Member Avatar for nadiam

hey guys so i have an issue with my enable disable function which i just realized a few minutes ago. easier to explain with a screenshot: ![08c804f5fc7f9af5f870d8cf5a7cc3fa](/attachments/small/4/08c804f5fc7f9af5f870d8cf5a7cc3fa.jpg "align-right") so as you can see i have multiple checkboxes. say for example all checkboxes are checked and the delete button is enabled, …

Member Avatar for nadiam
0
458
Member Avatar for nadiam

hey guys so im trying to check if a checkbox is checked. and if one checkbox is checked a button is enabled if more than 1 it is still disabled; button is disabled by default. <script type="text/javascript"> var editbtn = $("#edit_contact"); editbtn.attr("disabled","disabled"); $('.contacts input:checkbox').live("click", function() { if(this.checked.length === 1) { …

Member Avatar for nadiam
0
250
Member Avatar for Start4me

I've trying to figure out how to do this, but errors didn't stop flooding me. The following code works fine: For i = 1 To 50 Me.Controls("CheckBox" & i).Visible = True Next i But when I modify it to: For i = 1 To 50 Me.Controls("CheckBox" & i).Checked = False …

Member Avatar for Reverend Jim
0
319
Member Avatar for p.h.p

Hi all, I am fighting with the following issue and was hoping you can give me some insights, as I am totally stuck. What's going on? I have 3 tables, created as follows: table category_p column id column name column type table home column id table link_category_p_home column category_p_id column …

Member Avatar for p.h.p
0
358
Member Avatar for Almeister9

Hi all, I am very new to php and am slowly trying to get something together. I have a MySQL database with a table that has (among others) a field which is TINYINT called "field1". I have managed to be able to store a 1 or 0 in it from …

Member Avatar for baby007
0
2K
Member Avatar for malatamil

i have 2 tables, first is main category will display in dropdownlist, and second is subcategory chexboxes. i have a problem in this. need to display subcategory while selecting any maincategory from dropdownlist id to display subcategory. category table: state:<select name"category" id="category"> <option value="0">...select state...</option> <option value="karnataka">karnataka</option> <option value="Tamilnadu">Tamilnadu</option> <option …

Member Avatar for malatamil
0
2K
Member Avatar for nadiam

hey guys so im trying to delete a row using checkbox but i get an undefined index error = Notice: Undefined index: check in D:\Xampp\htdocs\EMS2\event.php . i think its because the checkbox is echoed(?)maybe? or is it something else that i overlooked? <tbody class="tbody-event-list-table2"> <?php require "connection.php"; $check = mysql_query("SELECT …

Member Avatar for nadiam
0
456
Member Avatar for nadiam

hey guys, so i want to disable the input button function unless checbox is checked. i found [this](http://forums.phpfreaks.com/topic/41715-solved-submit-button-remain-disabled-until-checkbox-checked/) forum and it sorta worked. the button is disabled when no checkbox is checked but it stays disabled even after checkbox is checked. this is the html: <input type="button" id="del_event" name="del_event" value="Delete …

Member Avatar for nadiam
0
4K
Member Avatar for GeneM1000

I have a form with a lot of checkboxes on it. I want to be able to set all the checkbox properties to "checked" in my code. Here is what I would like to do: For Each ctl As Control In Me.Controls If TypeOf ctl Is CheckBox Then ctl.checked = …

Member Avatar for GeneM1000
0
309
Member Avatar for ray100

Hi,I am a beginner in php. And I am trying to create this php program where a user selects a picture and it displays it! Theare is an input page which is html and an processing page which is php! I seemes to have a problem in the processing page …

Member Avatar for GliderPilot
0
236
Member Avatar for Syria Elisha

i already searched about displaying the data fields, my problem is how to retain the checked item and then set its value as 1. please help. i tried some code but didn't work: <html> <form action='' method='post'> <?php $database = 'sample'; $table = 'checklist_stud_columns'; $mysql = mysql_connect('localhost', 'root', '') or …

Member Avatar for diafol
0
248
Member Avatar for rpv_sen

Hi I am selecting wdays1 checkbox is checked and remaining checkbox is unchecked after submitting, i am getting an error message as below can any one please help me to resolve the issue **Error** `1 Notice: Undefined index: wdays2 in C:\xampp\htdocs\smart\checkvalue.php on line 10 0 Notice: Undefined index: wdays3 in …

Member Avatar for cereal
0
726
Member Avatar for genwes

Hi, i've been asked to create a visit counter using checkboxes and a submit button. When a form (available form - code below) is submitted (pressed visit button) a script should work out which properties have been selected (using checkboxes) by the user and then add one to the Visits …

Member Avatar for genwes
0
348
Member Avatar for achini.thilanka

i want to know how to create database when there are check boxes. i also want to know the codes to connect those checkbox values to database and retrieve from database. this is my part of my html code. <tr> <td>Professional Qualification <br /></td> <td style="height: 78px"> <input type="checkbox" name="Charted" …

Member Avatar for phpology
0
218
Member Avatar for klemme

Hi All I have to create a filtering function for a webshop, and need to do it client side for performance reasons. I load in x number of product, so I can get to them in the DOM - And after this I have a number of checkbox groups which …

Member Avatar for klemme
0
2K
Member Avatar for Amaina

hello folks I'm a greenhorn in PHP so excuse me if i'm being dumb. I have set up a page that is pulling records out of a database table, the user viewing the page is intended the choose a number of the records on the page (using checkboxes) and download …

Member Avatar for Amaina
0
899

The End.