Re: [PHP] Re: Checkbox in PHP form

2009-11-10 Thread Adam Randall
On Sun, Nov 8, 2009 at 9:52 PM, Brian Hazelton bdh_2...@comcast.net wrote: input class=text id=myCheck1 type=checkbox ?php if ( $row[33] == 'no') { echo checked=checked;  } ? value=PFDs name=f_sequipment1/bfont size=2PFDsb -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Checkbox in PHP form

2009-11-08 Thread Manuel Lemos
Hello, on 11/08/2009 11:39 PM Ernie Kemp said the following: Need some help here with checkboxes in an html form. My issue is I have a form that needs to be viewed with checkboxes filled in depending on the values in the table. I tried: INPUT class=text id=myCheck1

Re: [PHP] Re: Checkbox in PHP form

2009-11-08 Thread Brian Hazelton
input class=text id=myCheck1 type=checkbox ?php if ( $row[33] == 'no') { echo checked=checked; } ? value=PFDs name=f_sequipment1/bfont size=2PFDsb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Checkbox

2003-03-26 Thread Towel Boy
Try the readonly flag input type=checkbox name=checkboxes1 value=choice1 checked readonly Haven't tried it, no guarantees... Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, is it possible to have a checkbox that if it is specified to be checked when the page is being

[PHP] Re: checkbox question

2002-09-10 Thread B.C. Lance
if you can't use [] for the checkbox, the only way out is to have unique name for each checkbox. otherwise, php will always be returning the value of the last checked checkbox if all checkboxes share the same name without the []. --lance Alex Shi wrote: How to ontain data from a group of

[PHP] Re: checkbox question

2002-09-10 Thread Craig Donnelly
This will work: http://www.php.net/array_merge Call your checkboxes like so: a.php == form action=b.php method=post input type=checkbox name=a1 value=Abr input type=checkbox name=a2 value=Bbr input type=checkbox

[PHP] Re: checkbox question

2002-09-09 Thread Craig Donnelly
Why cant you use square brackets?? call all your checkboxes the following: interesting_area[] Then post it to whatever page, now all the checkboxes that were checked are held in a array (interesting_area) To see what is contained in the array, do the following: ?php echo pre;

[PHP] Re: checkbox question

2002-09-08 Thread Rodrigo Dominguez
Why you can't use square brackets? Alex Shi [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How to ontain data from a group of checkbox using same name? For example, in a form there're 6 checkboxes and all named as Interesting_Area. I know if put a pairs