Re: [PHP] how to create multiple selects within php

2004-10-18 Thread John Nichel
bruce wrote: hi... i can create a form with a single select by something like: form select name='foo' option val='1'fff/option option val='2'aaa/option /select input /form however, i need to know how to create a multiple menu/list within a single form. Not sure exactly what you're asking here,

RE: [PHP] how to create multiple selects within php

2004-10-18 Thread bruce
ok... it appears to be a case of user err.. the spec seems to state that if the user doesn't select/specify an item, the select should return the 1st item within the list... arrrgggh!! this is what's happening... so my question is still, how can i implement some logic that requires the user to

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread John Nichel
bruce wrote: ok... it appears to be a case of user err.. the spec seems to state that if the user doesn't select/specify an item, the select should return the 1st item within the list... arrrgggh!! this is what's happening... Not true. If the user doesn't select anything, nothing will be

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread Brian
with your code above the first option is going to be the default, so just make the default nothing: option value='blank'/option then check with: if ( $_GET['foo'] 'blank' ) On Mon, 18 Oct 2004 07:22:30 -0700, bruce [EMAIL PROTECTED] wrote: ok... it appears to be a case of user err.. the

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread John Nichel
Please reply to the list. bruce wrote: john.. thanks for the response... but i don't need a multiple select.. what i need are multiple select/menu lists... list1list2 list3 however, the issue i'm really facing is how to detect that a user has actually selected an item in a given list, as

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread Silvio Porcellana
You can do something like this: HTML select name='foo' option value='' - - choose one - -/option option value='1'fff/option option value='2'aaa/option . /select /HTML and then in your PHP: ?php if ($_POST['foo'] != '') { # do something } else { #

RE: [PHP] how to create multiple selects within php

2004-10-18 Thread bruce
they haven't been selected thanks -bruce -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 7:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] how to create multiple selects within php bruce wrote: ok... it appears to be a case of user err

Re: [PHP] how to create multiple selects within php

2004-10-18 Thread Brian
7:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] how to create multiple selects within php bruce wrote: ok... it appears to be a case of user err.. the spec seems to state that if the user doesn't select/specify an item, the select should return the 1st item within the list

RE: [PHP] how to create multiple selects within php

2004-10-18 Thread bruce
Porcellana [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 7:44 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] how to create multiple selects within php You can do something like this: HTML select name='foo' option value='' - - choose one - -/option option value='1'fff/option option value='2'aaa