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 one
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
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 John
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 n
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
searchi
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
searchi
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 searc
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
Than
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 suppli
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 quer
Lists wrote:
> PJ wrote:
>> How to deactivate checkboxes when one in a series is checked?
>>
>>
>>
>>
>> So that only 1 of the other inputs could be used in a search. Probably
>> do the rest with switch stuff.
>> Would be neat if the deactivated checkboxes would go grey.
>> Is this an HTML ques
PJ wrote:
How to deactivate checkboxes when one in a series is checked?
So that only 1 of the other inputs could be used in a search. Probably
do the rest with switch stuff.
Would be neat if the deactivated checkboxes would go grey.
Is this an HTML question? Use onclick?But I think I need to
How to deactivate checkboxes when one in a series is checked?
So that only 1 of the other inputs could be used in a search. Probably
do the rest with switch stuff.
Would be neat if the deactivated checkboxes would go grey.
Is this an HTML question? Use onclick?But I think I need to either use a
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\">
>>
>>
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 wi
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[]\"
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 javascript array
name=\"box\"
does
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
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.
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. How can I get the value from $_POST even though
it's unchecked?
For ex
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 GROU
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 i
Hi,
With your help I got some checkboxes generated the other day for a form.
I would like some help getting a similar problem solved.
I am now making a form to edit db entries made in the previous form. I
have three tables involved: art, media and media_art. I need to show
checkboxes for all
I am having a problem with checkboxes...
$_SESSION['logs'] .= "DateTimeIP
AddressPortLog MessageDetails?";
require 'database_script.php';
$table = "logs";
$sql = mysql_query("SELECT * FROM $table ORDER BY date",$db)or
die(mysql_error());
while($row = mysql_fetch_array($sql)) {
list($id,$date,$
> 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 fi
na" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 15, 2003 2:25 PM
Subject: [PHP] Checkboxes
Hi all,
I am wondering what would be the best way to handle checkboxes. I am
making a site that will display several items in a 20-items-per-page
format and each
0: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)
will be filled up with hundreds of items grabbed automatically out of
another MySQL table... would it help too? Maybe naming the checkboxes
with each ite
aje 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:
>
>
>
>
> So basically when it get
You could try this:
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,
>
> I am wondering what would be the best way to handle checkboxes. I am
Hi all,
I am wondering what would be the best way to handle checkboxes. I am
making a site that will display several items in a 20-items-per-page
format and each item will have a checkbox next to it for the user to
select them. Now, what I need to do is to record the items selected by
the user wh
Hi,
Maybe you can help me with the following: I have a list of visitors that want some
documentation.. I'm displaying a list with a checkbox so i can check the one's that
received the documentation. So what is must do; it must update a table called
prospects and set the value of a field called
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 t
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 ($i=0;$i".$_POST['
> 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
Hi
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 not a
> -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 w
Hi...
can you give me some lights in this subject? How checkboxes work with php?
Or where i can find some info about this? Or both :)
Ex: if i want to erase from db all data with the checkbox active...
thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
Quoting Chris Boget <[EMAIL PROTECTED]>:
### > 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 unsubscribe, visit:
> 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
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 j
gt; 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 each one has a seperate
### value,
### > how do I
ohn Holmes...
From: "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 d
Message -
> From: "Richard Whitney" <[EMAIL PROTECTED]>
> To: "Greg" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 24, 2003 3:31 PM
> Subject: Re: [PHP] checkboxes & php
>
>
> > You need to give the
gt; -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 each one has a seperate value,
> ho
hitney" <[EMAIL PROTECTED]>
To: "Greg" <[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
>
> Qu
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?
##
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
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 &
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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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[''] 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
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[''] to
retrieve data from forms, but what happens
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: [
Hi
HELP!!!
I have read through the manual about using $_POST[''] to retrieve
data from forms, but what happens when a form element is not filled in
or checked?
If I have a checkbox on a form called "chk1" I get an error from PHP
when I try this:
$chk1 = $_POST['chk1']; // error if user did n
At 12:16 22.11.2002, empty spoke out and said:
[snip]
>...
>
> AAA
>
>
> SSS
>
>...
>
>and the PHP code:
>
>$eval='';
>if(isset($val)){
> if(isset($val[0]) && isset($val[1])) $eval="as";
> if(isset($val[0]) && !isset($val[1])) $eval="a";
> if(!isset($
Hello;
I want to do that:
I have two checkboxes:
if first one is checked assign the value as a;
if first one is checked assign the value as s;
if both of them checked assign th value as as
and insert the result db;
the html code:
...
AAA
SSS
...
and the PHP code:
hecked" is written
to the HTML stream
Adapted from ASP functions by Ken Schaefer.
*/
define("PROC", "fncwriteformcheckbox");
$strtemp = "
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 5:06 PM
Subject: [PHP] checkboxes and selection lists
Hi, as a
if there aren't many value, I think the following sounds better:
echo "
A
B
C
" ;
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 5:06 PM
Subject: [PHP] checkboxes and selection lists
Hi, as a beginner I
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...
for ( $i = 0; $qual_array[$i]; $i++ ) {
if ( $_POST['qual'] == $qual_array[$i] ) {
echo ( "" .
$qual_array[$i] . "\n" );
} else {
echo ( "" . $qual_arr
Hi, as a beginner I find the way you declare variables through HTML-forms quite
straightforward. But the reverse, to put the same variables back into a form field is
not so obvious for selection lists and checkboxes. Would for instance this be the best
way:
>A
ðÒÉ×ÅÔ!
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
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 th
> 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
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 to use
> 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 w
Hi
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 well?
Thanks
y of the class. 'ck' would be the value of another property. Maybe
your foreach statement was in a member function.
OK, I'll shut up now :)
[TK]
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 5 March 2002 2:24 AM
> To
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
> 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 t
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 r
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.
(submit..)
$test now contains array("1","3");
bvr.
Ben Turner wrote:
>Don't checkboxes, if you name them all the sa
ROTECTED]>
To: "Ben 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...). Whe
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:
Now as far as the PHP script I think you need to use the implode(); function.
-GENESiS DESiGNS
-Sean Kennedy
-http://www
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
Don't checkboxes, if you name them all the same name, produce a comma delimited string
in php of the values selected???
such as for 15 checkboxes with numeric values would produce a string such as
,,,1314,,,18
when the form was submited?? This is the way it was handled in ASP... i
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
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 variables to pass these values to shopping cart.
my co
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 pas
To: [EMAIL PROTECTED]
Subject: [PHP] Checkboxes / Undefined Variables
In am HTML form, checkboxes NOT checked are not passed
to the PHP script called by the form.
Therefore, if $name_of_chechbox_3 is not passed but it's
used in the PHP script, it results in "Warning:
Undefined Variabl
In am HTML form, checkboxes NOT checked are not passed
to the PHP script called by the form.
Therefore, if $name_of_chechbox_3 is not passed but it's
used in the PHP script, it results in "Warning:
Undefined Variable".
How can I avoid this?
Thanks!
A. F. Rodriguez
([EMAIL PROTECTED])
--
P
mail)" <[EMAIL PROTECTED]>
Sent: Friday, 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
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
> checke
does anyone know the HTML event that knows when a checkbox has been
checked and unchecked?
So far I'm using onChange but that is not exactly what I need. I need to
run one JS function when a checkbox is checked and another when it is
unchecked.
NE1?
berber
--
PHP General Mailing List (http://w
have you tried :
ID\">
--
(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr
Ryan Stephens <[EMAIL PROTECTED]> a écrit dans le message :
[EMAIL PROTECTED]
> Im trying to output a list of options, each with a checkbox named "ChkBox"
> and with a value
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 arra
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
Im trying to output a list of options, each with a checkbox named "ChkBox"
and with a value of the ID number from the database. This is no prob.
The thing is, i want to be able to select some of those checkboxes (any
number, in combination) and delete the information from the database that is
asso
Hi all,
maybe this example will show you what is the
problem.
Try to unselect some of the checkboxes and you will
see that there is some magic in here.
I want to have per id if the selectbox is selected
or not.
The test.html will be generated from mysql when
test.php is working fine.
I'm g
Hi!
well I've managed to make it work by comparing the checkbbox value (on)!
Thanks anyway
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing List (http://www.php.net/)
To un
is it ok to just check the ckecboxs and hit submit? thats what most sites
do? thats real easy todo. follow up if you want some code examples.
--
Chris Lee
Mediawaveonline.com
em. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
""kaab kaoutar"" <[EMAIL PROTECTED]> wrot
Hi folks!
How can i do the following using php:
in a page i have many checkboxes that were generated dynamically,
the user may check many of them, i want that when a checkbox is checked, add
it to a session variable !
i thaught of using javascript, but i can't use session variables in
javascrip
>$num_inputs = 5; // if you want 5 sets of checkboxes and text inputs.
>
>for ( $i = 0; $i < $num_inputs; $i++ )
> {
> echo "Cb $i name=text[$i]>\n";
> }
yeah... that can work, I think it's a little less messy than what I've
done... I did it like this:
for each checkbox I did
echo
"Christian Dechery" <[EMAIL PROTECTED]> wrote:
> How can I associate a list of checkboxes to a list of texfields?
> but what if have:
> Cb1 Cb2
> how would I associate each textfield to its checkbox? In the same array?
in
> a different one? How??
I would recommend generating these checkbox / te
How can I associate a list of checkboxes to a list of texfields?
if I had only several checkboxes I'd have:
Cb1
Cb2 ... etc...
but what if have:
Cb1 Cb2 http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
it took me a while to find this out, too.
If you have say, 5 checkboxes, name them like so:
when submitted, in the script processing the form, check the array
$musicians[]. The checked selections will be included as elements.
So if trane and bird were checked, you will have a 2-element a
, 15 Jan 2001 14:11:18 -0800
> From: Jerry Lake <[EMAIL PROTECTED]>
> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]>
> Subject: [PHP] checkboxes into MySQL(trying again)
>
> sorry about that,
> I forgot to erase the old post
> info
>
sorry about that,
I forgot to erase the old post
info
here is a chunk of the code I am using
//inclusion of pizza toppings from DB
$query = ("SELECT * FROM toppings");
$result2 = mysql_db_query($DBName, $query) or
die("Error in MySQL query");
echo "";
echo "";
$colors = array( '#e4e4e4', '#fff
-0800
> From: Jerry Lake <[EMAIL PROTECTED]>
> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]>
> Subject: [PHP] checkboxes into MySQL
>
> I know this has been discussed,
> but it messing with me.
>
> in a script I'm working on
>
I know this has been discussed,
but it messing with me.
in a script I'm working on
I pull out an array of checkboxes
from a database,
how do I store what people select
back to the DB
all I end up with is the last selection
of the array.
Jerry Lake
-Original Message-
From: jeremy bran
98 matches
Mail list logo