Re: [PHP] checkboxes

2009-04-24 Thread PJ
Lists wrote: tedd wrote: At 4:58 PM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ H I've looked at your demo and, frankly, don't see it working. When I enter names and click on one of the search buttons, I don't get sane results. For instance,

Re: [PHP] checkboxes

2009-04-24 Thread tedd
At 5:30 PM -0500 4/23/09, Lists wrote: Tedd, nice looking contact demo thingy.. but PJ has a point. ;-) It would make the app perhaps more intuitive if one could just type text in any of the 3 fields and then spit out results that match all of the comparisons that are not blank by clicking

Re: [PHP] checkboxes

2009-04-23 Thread tedd
At 5:33 PM -0400 4/22/09, PJ wrote: Well, I'm making a page to do limited searching of the database. To keep it simple I just want to search by title, author, ISBN or copyright date. So, I need to input the user's choice, limit it to one of the options and pass the supplied parameter to the

Re: [PHP] checkboxes

2009-04-23 Thread PJ
tedd wrote: At 5:33 PM -0400 4/22/09, PJ wrote: Well, I'm making a page to do limited searching of the database. To keep it simple I just want to search by title, author, ISBN or copyright date. So, I need to input the user's choice, limit it to one of the options and pass the supplied

Re: [PHP] checkboxes

2009-04-23 Thread tedd
At 10:11 AM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ Here a user can search for a Last name, first name, or email. Note, there's no checkboxes because the user indicates what they are searching for by where they place their search criteria. HTH's tedd

Re: [PHP] checkboxes

2009-04-23 Thread PJ
tedd wrote: At 10:11 AM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ Here a user can search for a Last name, first name, or email. Note, there's no checkboxes because the user indicates what they are searching for by where they place their search criteria.

Re: [PHP] checkboxes

2009-04-23 Thread PJ
PJ wrote: tedd wrote: At 10:11 AM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ Here a user can search for a Last name, first name, or email. Note, there's no checkboxes because the user indicates what they are searching for by where they place

Re: [PHP] checkboxes

2009-04-23 Thread PJ
PJ wrote: tedd wrote: At 10:11 AM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ Here a user can search for a Last name, first name, or email. Note, there's no checkboxes because the user indicates what they are searching for by where they place

Re: [PHP] checkboxes

2009-04-23 Thread tedd
At 4:58 PM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ H I've looked at your demo and, frankly, don't see it working. When I enter names and click on one of the search buttons, I don't get sane results. For instance, entering Johnson in last name and

Re: [PHP] checkboxes

2009-04-23 Thread Lists
tedd wrote: At 4:58 PM -0400 4/23/09, PJ wrote: tedd wrote: http://php1.net/a/edit-db-demo/ H I've looked at your demo and, frankly, don't see it working. When I enter names and click on one of the search buttons, I don't get sane results. For instance, entering Johnson in

Re: [PHP] checkboxes

2009-04-22 Thread Lists
PJ wrote: How to deactivate checkboxes when one in a series is checked? input type=checkbox name=choice[1]another input input type=checkbox name=choice[2]another input1 input type=checkbox name=choice[3]another input2 input type=checkbox name=choice[4]another input3 So that only 1 of the other

Re: [PHP] checkboxes

2009-04-22 Thread PJ
Lists wrote: PJ wrote: How to deactivate checkboxes when one in a series is checked? input type=checkbox name=choice[1]another input input type=checkbox name=choice[2]another input1 input type=checkbox name=choice[3]another input2 input type=checkbox name=choice[4]another input3 So that

Re: [PHP] checkboxes problem

2007-06-01 Thread Roberto Mansfield
Richard Lynch wrote: On Wed, May 30, 2007 3:59 am, blueboy wrote: Hi, I have a checkbox array (about 20 lines) input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ I do some client side checking with

Re: [PHP] checkboxes problem

2007-05-30 Thread Zoltán Németh
2007. 05. 30, szerda keltezéssel 09.59-kor blueboy ezt írta: Hi, I have a checkbox array (about 20 lines) input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ input name=\box[]\ type=\checkbox\ value=\$id\

Re: [PHP] checkboxes problem

2007-05-30 Thread Richard Lynch
On Wed, May 30, 2007 3:59 am, blueboy wrote: Hi, I have a checkbox array (about 20 lines) input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ input name=\box\ type=\checkbox\ value=\$id\ I do some client side checking with javascript however the

Re: [PHP] checkboxes

2005-11-30 Thread Brent Baisley
Excellent response. You should always be expecting certain data. So if no checkboxes are checked, your code should realize that since it was expecting the data and none was submitted. The lazy way is much easier to code, but it is actually fairly efficient. You are only hitting the database

Re: [PHP] checkboxes

2005-11-29 Thread Curt Zirzow
On Tue, Nov 29, 2005 at 10:15:36PM -0500, blackwater dev wrote: I have a form where I am dynamically building a bunch of checkbox inputs. Then when submitted, I need to update the db. Problem is, of course, if the checkbox is unchecked then the $_POST doesn't have the value in the array.

Re: [PHP] Checkboxes From Intersection Redux

2005-06-15 Thread Kristen G. Thorson
Hopefully I understand your question correctly. You have this SQL: $media_query = 'SELECT media_id,media_name FROM media GROUP BY media_name'; And For every media_id which is associated with $cartoon in the table media_art, check the box; for all others leave them unchecked. The problem

Re: [PHP] Checkboxes From Intersection Redux

2005-06-15 Thread Jack Jackson
That did it exactly, Kristen Thanks so much for the help! (and sorry for sending this to you and not the list the first time!) JJ Kristen G. Thorson wrote: Hopefully I understand your question correctly. You have this SQL: $media_query = 'SELECT media_id,media_name FROM media

Re: [PHP] Checkboxes

2003-08-15 Thread Matt Babineau
You could try this: input type=hidden name=box1 value=0 input type=checkbox name=box1 value=1 So basically when it get submitted, you'll have either a 0 or 1 response to know whether or not it has been checked. Does this help? Matt On Fri, 2003-08-15 at 14:25, Cesar Aracena wrote: Hi all,

RE: [PHP] Checkboxes

2003-08-15 Thread Cesar Aracena
original- De: Matt Babineau [mailto:[EMAIL PROTECTED] Enviado el: Viernes, 15 de Agosto de 2003 12:34 p.m. Para: Cesar Aracena CC: [EMAIL PROTECTED] Asunto: Re: [PHP] Checkboxes You could try this: input type=hidden name=box1 value=0 input type=checkbox name=box1 value=1 So

RE: [PHP] Checkboxes

2003-08-15 Thread Wouter van Vliet
knows what boxes it expects? -Oorspronkelijk bericht- Van: Cesar Aracena [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 15 augustus 2003 20:38 Aan: [EMAIL PROTECTED] Onderwerp: RE: [PHP] Checkboxes Urgentie: Hoog It could be a solution but only working with a few items. My list(s

Re: [PHP] Checkboxes

2003-08-15 Thread CPT John W. Holmes
You could name them as: input type=checkbox name=choice[] value=1 input type=checkbox name=choice[] value=2 etc... Then $_POST['choice'] will be an array of the boxes chosen. $list = implode(',',$_POST['choice']); will give you a comma separated list of all items chosen. ---John Holmes...

Re: [PHP] Checkboxes

2003-08-15 Thread Chris Boget
It could be a solution but only working with a few items. My list(s) will be filled up with hundreds of items grabbed automatically out of another MySQL table... would it help too? Maybe naming the check boxes with each item own ID... anyone? What you could do is this: $query = SELECT

Re: [PHP] Checkboxes

2003-03-14 Thread Hugh Danaher
The following is completely untested but might yield the results you want. It assigns a value to the skill array, prints the post var, and then (I hope) advances the array pointer to the next array element: Good luck, hugh if (count($_POST['skill'])0) { for

Re: [PHP] Checkboxes

2003-03-14 Thread Hugh Danaher
In further thought on this, I'm not sure that $_POST['skill'] is an array. Hugh - Original Message - From: Stephen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 13, 2003 8:47 PM Subject: [PHP] Checkboxes Hi I am trying to get results form checkboxes on a form. Each

RE: [PHP] Checkboxes

2003-03-13 Thread John W. Holmes
I am trying to get results form checkboxes on a form. Each checkbox is given a value of the id of an item in a table. What I want to do is find out what is selected and from there get the id so I can create a sql insert statement for each selected item. I can get the item selected but

RE: [PHP] checkboxes and php...

2003-01-31 Thread Matt Schroebel
-Original Message- From: Mr. BuNgL3 [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 8:43 AM To: [EMAIL PROTECTED] Subject: [PHP] checkboxes and php... Hi... can you give me some lights in this subject? How checkboxes work with php? Or where i can find some info

RE: [PHP] checkboxes php

2003-01-24 Thread Edward Peloke
why would you give them all the same name? I can see this for radio buttons but not checkboxes. -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 3:27 PM To: [EMAIL PROTECTED] Subject: [PHP] checkboxes php If I have 3 checkboxes labeled user, but

Re: [PHP] checkboxes php

2003-01-24 Thread Richard Whitney
You need to give the checkboxes unique names like user1, user2 user3 RW Quoting Greg [EMAIL PROTECTED]: ### If I have 3 checkboxes labeled user, but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes

Re: [PHP] checkboxes php

2003-01-24 Thread Richard Whitney
Do you, prehaps, wants to use radio buttons instead? RW Quoting Greg [EMAIL PROTECTED]: ### If I have 3 checkboxes labeled user, but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes are checked? ###

Re: [PHP] checkboxes php

2003-01-24 Thread 1LT John W. Holmes
[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 24, 2003 3:31 PM Subject: Re: [PHP] checkboxes php You need to give the checkboxes unique names like user1, user2 user3 RW Quoting Greg [EMAIL PROTECTED]: ### If I have 3 checkboxes labeled user, but each one has a seperate

Re: [PHP] checkboxes php

2003-01-24 Thread Greg
I want to be able to let people check multiple values. I want them to be given a list of usernames and check the ones they want deleted, so a radio button won't work. If you go to Yahoo mail and select more than one checkbox, you can delete more than one item. I looked at the source and all the

Re: [PHP] checkboxes php

2003-01-24 Thread Greg
: [EMAIL PROTECTED] Sent: Friday, January 24, 2003 3:31 PM Subject: Re: [PHP] checkboxes php You need to give the checkboxes unique names like user1, user2 user3 RW Quoting Greg [EMAIL PROTECTED]: ### If I have 3 checkboxes labeled user, but each one has a seperate value, ###

Re: [PHP] checkboxes php

2003-01-24 Thread Didier McGillis
: Greg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] checkboxes php Date: Fri, 24 Jan 2003 15:37:06 -0500 I want to be able to let people check multiple values. I want them to be given a list of usernames and check the ones they want deleted, so a radio button won't work. If you go

Re: [PHP] checkboxes php

2003-01-24 Thread Richard Whitney
I just logged in to my Yahoo mail account. I have only one account, but when I went to Preferences, it had a select multiple, which you might want to consider RW Quoting Greg [EMAIL PROTECTED]: ### I want to be able to let people check multiple values. I want them to be ### given a list of

Re: [PHP] checkboxes php

2003-01-24 Thread Rick Emery
select multiple applies to selection lists, not checkboxes - Original Message - From: Richard Whitney [EMAIL PROTECTED] To: Greg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 24, 2003 2:59 PM Subject: Re: [PHP] checkboxes php I just logged in to my Yahoo mail account

Re: [PHP] checkboxes php

2003-01-24 Thread Chris Boget
select multiple applies to selection lists, not checkboxes Indeed. But I believe he was offering that as an alternative. :) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkboxes php

2003-01-24 Thread Richard Whitney
Quoting Chris Boget [EMAIL PROTECTED]: ### select multiple applies to selection lists, not checkboxes ### ### Indeed. But I believe he was offering that as an alternative. :) Ahem! Thanks Chris! RW ### Chris ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To

Re: [PHP] checkboxes, radio buttons and $_POST['name']

2003-01-09 Thread Tim Ward
isset($_POST[chk1]) will only be true if the checkbox is checked. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: John-Erik Omland [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 6:25 PM Subject: [PHP] checkboxes, radio

Re: [PHP] checkboxes, radio buttons and $_POST['name']

2003-01-09 Thread Marek Kilimajer
In the php.ini file set error reporting to E_ALL ~E_NOTICE -- Joseph W. Goff Seems like register_globals issue has been replaced by error_reporting ;-) John-Erik Omland wrote: Hi HELP!!! I have read through the manual about using $_POST['name'] to retrieve data from forms, but what

Re: [PHP] checkboxes, radio buttons and $_POST['name']

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:25:00 AM, you wrote: JEO Hi JEO HELP!!! JEO I have read through the manual about using $_POST['name'] to retrieve JEO data from forms, but what happens when a form element is not filled in JEO or checked? JEO If I have a checkbox on a form called chk1 I get an

Re: [PHP] checkboxes

2002-11-22 Thread Ernest E Vogelsinger
At 12:16 22.11.2002, empty spoke out and said: [snip] ... tr tdinput type=checkbox name=val value=a / AAA/td /tr tr tdinput type=checkbox name=val value=s / SSS/td /tr ... and the PHP code: $eval=''; if(isset($val)){ if(isset($val[0]) isset($val[1]))

Re: [PHP] checkboxes and selection lists

2002-11-04 Thread John Nichel
For something like this, instead of doing all the HTML, I would set up and array, and then loop through the array to output the HTML... SELECT CLASS=select NAME=qual ?php for ( $i = 0; $qual_array[$i]; $i++ ) { if ( $_POST['qual'] == $qual_array[$i] ) { echo ( OPTION VALUE=\ .

Re: [PHP] checkboxes and selection lists

2002-11-04 Thread rija
If you have hundred thousand elements for example if you rob up for some country select within tierce code- I thinks doing like the following is better echo select optiona optionb ... optionzz option selected$value /option /select ; And I don't care if it could have 2 same

RE: [PHP] checkboxes and selection lists

2002-11-04 Thread Brendon G
I use the following function for my check boxes in forms in PHP. Putting your form element creation into functions or even classes makes life so much easier when you have to validate / change code. you'll be glad you did it Cheers Brendon function fncwriteformcheckbox($strname, $strid,

RE: [PHP] checkboxes / form elements

2002-07-12 Thread John Holmes
Hello. I have a form that I would like to use checkboxes. these checkboxes are created dynamically. I've been told that if I want to manipulate each one then I should use 'name=checkbox[]' and make an array out of it. okay, fine. but how do i access them in my PHP script? I know I have

Re: [PHP] checkboxes / form elements

2002-07-12 Thread Analysis Solutions
On Fri, Jul 12, 2002 at 10:59:00PM -0400, Blue Presley wrote: Hello. I have a form that I would like to use checkboxes. ... snip ... I've been told that if I want to manipulate each one then I should use 'name=checkbox[]' and make an array out of it. okay, fine. but how do i access them

Re: [PHP] checkboxes / form elements

2002-07-12 Thread Alberto Serra
ðÒÉ×ÅÔ! Analysis Solutions wrote: On Fri, Jul 12, 2002 at 10:59:00PM -0400, Blue Presley wrote: Hello. I have a form that I would like to use checkboxes. ... snip ... I've been told that if I want to manipulate each one then I should use 'name=checkbox[]' and make an array out of it. okay,

RE: [PHP] checkboxes

2002-06-22 Thread David Freeman
I know this might be a bit easy for all you experts out there. I have multiple checkboxes and text areas in a form. In the confirmation email sent to the user I manage to get the text areas to display in the email. How would I get the results of the checkboxes to to display as

RE: [PHP] CheckBoxes....

2002-03-07 Thread Kearns, Terry
2:24 AM To: bvr Cc: Ben Turner; [EMAIL PROTECTED] Subject: Re: [PHP] CheckBoxes On Sunday, March 3, 2002, at 11:15 AM, bvr wrote: If you append '[]' to the name, an array will be returned after submit with the values of the checked checkboxes. Is there any other way

Re: [PHP] CheckBoxes....

2002-03-04 Thread Erik Price
On Sunday, March 3, 2002, at 11:15 AM, bvr wrote: If you append '[]' to the name, an array will be returned after submit with the values of the checked checkboxes. Is there any other way of doing this? Using the brackets at the end of the input's name is super-convenient, making it

RE: [PHP] CheckBoxes....

2002-03-04 Thread Jon Haworth
Alternatively, is there any plans to change the DTD for XHTML Strict to allow brackets? IMO it's not something that cause problems if it were to be supported. Kind of lame that it's not, actually. Subscribe to the www-html list at w3.org and ask the guys who look after this sort of

Re: [PHP] CheckBoxes....

2002-03-04 Thread Erik Price
On Monday, March 4, 2002, at 10:37 AM, Jon Haworth wrote: Subscribe to the www-html list at w3.org and ask the guys who look after this sort of thing if it's a possibility. Realistically, no-one will be prepared to rework the DTDs that already exist, but it might be something that's

Re: [PHP] CheckBoxes....

2002-03-03 Thread bvr
Yes, well, PHP supports that a little bit differently If you append '[]' to the name, an array will be returned after submit with the values of the checked checkboxes INPUT TYPE=TEXT NAME=test[] VALUE=1 CHECKED INPUT TYPE=TEXT NAME=test[] VALUE=2 INPUT TYPE=TEXT NAME=test[] VALUE=3 CHECKED

Re: [PHP] CheckBoxes....

2002-03-02 Thread Jeff Sheltren
As far as I know, you can't name different checkboxes with the same name (seems odd to me to do this anyway) When you submit a form to a php page, the php page will have a variable for each input item in your form So if you have checkbox items named, a, b, c, and d, and submit a form with a

Re: [PHP] CheckBoxes....

2002-03-02 Thread GENESiS DESiGNS
Ben, Hmm I don't really understand you question, but when I had check boxes in a form, you have to name them all the same but the value all different For example: input type=checkbox name=name[1] value=value1 input type=checkbox name=name[2] value=value2 input type=checkbox name=name[3]

Re: [PHP] CheckBoxes....

2002-03-02 Thread Ben Turner
Turner [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, March 02, 2002 10:25 PM Subject: Re: [PHP] CheckBoxes As far as I know, you can't name different checkboxes with the same name (seems odd to me to do this anyway...). When you submit a form to a php page, the php page will have

Re: [PHP] checkboxes vs text filed array and hidden variables

2002-01-14 Thread Jason Wong
On Monday 14 January 2002 06:03, m. ali wrote: Hi my problem : i have to pass the price, and part number which i get from the database to the shopping cart so when i select some of the items by checking the checkboxes and submit the form i get only the last item in the list i use hidden

RE: [PHP] Checkboxes / Undefined Variables

2001-11-13 Thread Martin Towell
use : @$name_of_chechbox_3 to suppress warnings or at the start of the file do : if (!isset($name_of_chechbox_3)) $name_of_chechbox_3 = ; or something similar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:03 PM To: [EMAIL

Re: [PHP] Checkboxes / Undefined Variables

2001-11-13 Thread Jason G.
your error reporting must be set to E_ALL. a very simple way is: $checkbox_3 = isset($checkbox_3); Now, $checkbox_3 will be either TRUE or FALSE with no errors! -Jason Garber IonZoft.com At 06:03 AM 11/14/2001 +, [EMAIL PROTECTED] wrote: In am HTML form, checkboxes NOT checked are not

RE: [PHP] checkboxes

2001-10-26 Thread Johnson, Kirk
onClick Kirk -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 3:03 PM To: PHP General (E-mail) Subject: [PHP] checkboxes does anyone know the HTML event that knows when a checkbox has been checked and unchecked? -- PHP General

Re: [PHP] checkboxes

2001-10-26 Thread Jim Lucas
, October 26, 2001 2:06 PM Subject: RE: [PHP] checkboxes onClick Kirk -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 3:03 PM To: PHP General (E-mail) Subject: [PHP] checkboxes does anyone know the HTML event that knows when

Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Christopher William Wesley
On Tue, 11 Sep 2001, Ryan Stephens wrote: Im trying to output a list of options, each with a checkbox named ChkBox ... Name each checkbox ChkBox[] ... the brackets are the key. When the form is submitted, you'll have an array called $ChkBox that will contain the data only from the checked

Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Don Read
On 12-Sep-2001 Christopher William Wesley wrote: On Tue, 11 Sep 2001, Ryan Stephens wrote: Im trying to output a list of options, each with a checkbox named ChkBox ... Name each checkbox ChkBox[] ... the brackets are the key. When the form is submitted, you'll have an array called

Re: [PHP] checkboxes and arrays

2001-02-12 Thread Steve Werby
"Christian Dechery" [EMAIL PROTECTED] wrote: How can I associate a list of checkboxes to a list of texfields? but what if have: input type=checkbox name=checklist[]Cb1 input type=text ... input type=checkbox name=checklist[]Cb2 input type=text ... how would I associate each textfield to its

Re: [PHP] checkboxes into MySQL

2001-01-15 Thread jeremy brand
What I see is that the below is not an array of checkboxes (that would be input type="checkbox" ..., not option ...). Option ... are part of a select But, to make a checkbox be checked, you simply do this: input type="checkbox" ... checked Jeremy Jeremy Brand :: Sr. Software Engineer ::

Re: [PHP] checkboxes into MySQL(trying again)

2001-01-15 Thread jeremy brand
Hi Jerry, Feel free (as in GPL) to use my libHtmlForm functions. This should solve your problem. http://www.nirvani.net/software/libHtmlForm/ See: html_input_checkbox() specifically. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]

Re: [PHP] checkboxes into MySQL

2001-01-15 Thread Kevin McCarthy
it took me a while to find this out, too. If you have say, 5 checkboxes, name them like so: input type="checkbox" name="musicians[]" value="monk" input type="checkbox" name="musicians[]" value="trane" input type="checkbox" name="musicians[]" value="miles" input type="checkbox"