Re: [PHP] parsing select multiple="multiple"

2013-02-21 Thread tamouse mailing lists
On Thu, Feb 21, 2013 at 8:46 AM, Jim Giner wrote: > >> >> I *have* heard claims that something like this is preferrable, though: >> >> if (FALSE === $variable) >> > I believe I read a comment somewhere once that writing your IF statements > that way helped to trigger an error message when the code

Re: [PHP] parsing select multiple="multiple"

2013-02-21 Thread Jim Giner
I *have* heard claims that something like this is preferrable, though: if (FALSE === $variable) I believe I read a comment somewhere once that writing your IF statements that way helped to trigger an error message when the coder forgot to use the double equal sign (==) in the statement. I

Re: [PHP] parsing select multiple="multiple"

2013-02-20 Thread tamouse mailing lists
On Tue, Feb 19, 2013 at 1:02 PM, John Taylor-Johnston wrote: > > tamouse mailing lists wrote: >>> >>> >I hate arrays. :D >> >> Here's a small snippet showing how it works, I hope: >> >> foreach ($DPRpriority as $item => $value) { >>echo " ".$item.": ".$value['name']." selected: >> ".$value['se

Re: [PHP] parsing select multiple="multiple"

2013-02-20 Thread Jim Giner
On 2/20/2013 11:41 AM, Tedd Sperling wrote: On Feb 18, 2013, at 7:54 PM, John Taylor-Johnston wrote: I am capable with . (I suppose I did it correctly? :p ) But I haven't the first clue how to parse a and multiply select name="DPRtype". Would anyone give me a couple of clues please? :) Tha

Re: [PHP] parsing select multiple="multiple"

2013-02-20 Thread Tedd Sperling
On Feb 18, 2013, at 7:54 PM, John Taylor-Johnston wrote: > I am capable with . (I suppose I did it correctly? > :p ) > But I haven't the first clue how to parse a and multiply > select name="DPRtype". > Would anyone give me a couple of clues please? :) > Thanks, > John John: A clue? How abo

Re: [PHP] parsing select multiple="multiple"

2013-02-19 Thread Jim Giner
On 2/19/2013 2:02 PM, John Taylor-Johnston wrote: tamouse mailing lists wrote: >I hate arrays. :D Here's a small snippet showing how it works, I hope: foreach ($DPRpriority as $item => $value) { echo " ".$item.": ".$value['name']." selected: ".$value['selected']." \n"; } Question 1: when

Re: [PHP] parsing select multiple="multiple"

2013-02-19 Thread John Taylor-Johnston
tamouse mailing lists wrote: >I hate arrays. :D Here's a small snippet showing how it works, I hope: foreach ($DPRpriority as $item => $value) { echo " ".$item.": ".$value['name']." selected: ".$value['selected']." \n"; } Question 1: when did we have to add [] to a name to turn it into a

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread tamouse mailing lists
On Mon, Feb 18, 2013 at 7:28 PM, John Taylor-Johnston wrote: > >>> >>> 1. Crimes Against >>> Persons >>> 2. Disturbances >>> 3. Assistance / >>> Medical >>> 4. Crimes Against >>> Property >>> 5. Accidents >>> / >>> Traffic

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread David Robley
tamouse mailing lists wrote: > On Mon, Feb 18, 2013 at 6:54 PM, John Taylor-Johnston > wrote: >> I am capable with . (I suppose I did it >> correctly? :p ) >> But I haven't the first clue how to parse a and >> multiply select name="DPRtype". >> Would anyone give me a couple of clues please? :) >

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread John Taylor-Johnston
1. Crimes Against Persons 2. Disturbances 3. Assistance / Medical 4. Crimes Against Property 5. Accidents / Traffic Problems 6. Suspicious Circumstances 7. Morality / Drugs 8. Miscel

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread tamouse mailing lists
On Mon, Feb 18, 2013 at 6:54 PM, John Taylor-Johnston wrote: > I am capable with . (I suppose I did it > correctly? :p ) > But I haven't the first clue how to parse a and multiply > select name="DPRtype". > Would anyone give me a couple of clues please? :) > Thanks, > John > >Priority