Re: [PHP] Can this work?

2013-07-05 Thread Ashley Sheridan
Can't you just use a number field, which is a hell of a lot easier (especially 
on an iPad) to use than a bunch of select lists.

"Karl-Arne Gjersøyen"  wrote:

>2013/7/5 Stuart Dallas 
>
>> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen 
>wrote:
>>
>> > 2013/7/5 Stuart Dallas 
>> >
>> >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen 
>> wrote:
>> >>
>> >>> Hello. I have a form in HTML/PHP with for loops that generate a
>> selected
>> >>> list like this:
>> >>> for($i = 1; $i< 25;$i++ ){
>> >>> 
>> >>> }
>> >>>
>> >>> The lists look like this:
>> >>>
>> >>> http://localhost/%7Ekarl/kasen/io/kp/index.php>"
>> >>> method="post">> >>> value="1-25" selected="selected">1-25> >>> value="1">12> >>> value="3">34> >>> value="5">56> >>> value="7">78> >>> value="9">910> >>> value="11">1112> >>> value="13">1314> >>> value="15">1516> >>> value="17">1718> >>> value="19">1920> >>> value="21">2122> >>> value="23">2324> >>> value="25">25 Kg > >>> name="valgt_dynamit_polse_26-50kg">> >>> selected="selected">26-50> >>> value="26">2627> >>> value="28">2829> >>> value="30">3031> >>> value="32">3233> >>> value="34">3435> >>> value="36">3637> >>> value="38">3839> >>> value="40">4041> >>> value="42">4243> >>> value="44">4445> >>> value="46">4647> >>> value="48">4849> >>> value="50">50 Kg 
>> >>>
>> >>> What I try to do with it is to register the selected value and do
>> >> something
>> >>> with it. The lists is weight in KG. I hope to select only one
>value
>> >> between
>> >>> 1-25kg OR 26-50kg. I don't know if this is possible? What do you
>think?
>> >>
>> >> If the range of acceptable values is 1-50, why do you have two
>select
>> >> fields instead of one?
>> >
>> > The select list has values between 1 and 200. Therefore I split it
>up for
>> > every 25th value.
>>
>> Ok, but why?
>
>
>I will use my application on iPad and find it more easy to use multiple
>select lists than one big list with all 200 values at once.
>
>Karl

Can't you just use a number field, which is a hell of a lot easier (especially 
on an iPad) to use than a bunch of select lists.
Thanks,
Ash

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:24, Karl-Arne Gjersøyen  wrote:

> 2013/7/5 Stuart Dallas 
> 
>> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen  wrote:
>> 
>>> 2013/7/5 Stuart Dallas 
>>> 
 On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen 
>> wrote:
 
> Hello. I have a form in HTML/PHP with for loops that generate a
>> selected
> list like this:
> for($i = 1; $i< 25;$i++ ){
> 
> }
> 
> The lists look like this:
> 
> http://localhost/%7Ekarl/kasen/io/kp/index.php>"
> method="post"> value="1-25" selected="selected">1-25 value="1">12 value="3">34 value="5">56 value="7">78 value="9">910 value="11">1112 value="13">1314 value="15">1516 value="17">1718 value="19">1920 value="21">2122 value="23">2324 value="25">25 Kg  name="valgt_dynamit_polse_26-50kg"> selected="selected">26-50 value="26">2627 value="28">2829 value="30">3031 value="32">3233 value="34">3435 value="36">3637 value="38">3839 value="40">4041 value="42">4243 value="44">4445 value="46">4647 value="48">4849 value="50">50 Kg 
> 
> What I try to do with it is to register the selected value and do
 something
> with it. The lists is weight in KG. I hope to select only one value
 between
> 1-25kg OR 26-50kg. I don't know if this is possible? What do you think?
 
 If the range of acceptable values is 1-50, why do you have two select
 fields instead of one?
>>> 
>>> The select list has values between 1 and 200. Therefore I split it up for
>>> every 25th value.
>> 
>> Ok, but why?
> 
> 
> I will use my application on iPad and find it more easy to use multiple
> select lists than one big list with all 200 values at once.

In that case I would recommend using a text input field and validate it with 
javascript and then validate it again on the server-side with PHP. With 
multiple select fields the only way you'll know which one the user (i.e. you) 
meant is by resetting the others to an empty value whenever one of them changes.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas 

> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen  wrote:
>
> > 2013/7/5 Stuart Dallas 
> >
> >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen 
> wrote:
> >>
> >>> Hello. I have a form in HTML/PHP with for loops that generate a
> selected
> >>> list like this:
> >>> for($i = 1; $i< 25;$i++ ){
> >>> 
> >>> }
> >>>
> >>> The lists look like this:
> >>>
> >>> http://localhost/%7Ekarl/kasen/io/kp/index.php>"
> >>> method="post"> >>> value="1-25" selected="selected">1-25 >>> value="1">12 >>> value="3">34 >>> value="5">56 >>> value="7">78 >>> value="9">910 >>> value="11">1112 >>> value="13">1314 >>> value="15">1516 >>> value="17">1718 >>> value="19">1920 >>> value="21">2122 >>> value="23">2324 >>> value="25">25 Kg  >>> name="valgt_dynamit_polse_26-50kg"> >>> selected="selected">26-50 >>> value="26">2627 >>> value="28">2829 >>> value="30">3031 >>> value="32">3233 >>> value="34">3435 >>> value="36">3637 >>> value="38">3839 >>> value="40">4041 >>> value="42">4243 >>> value="44">4445 >>> value="46">4647 >>> value="48">4849 >>> value="50">50 Kg 
> >>>
> >>> What I try to do with it is to register the selected value and do
> >> something
> >>> with it. The lists is weight in KG. I hope to select only one value
> >> between
> >>> 1-25kg OR 26-50kg. I don't know if this is possible? What do you think?
> >>
> >> If the range of acceptable values is 1-50, why do you have two select
> >> fields instead of one?
> >
> > The select list has values between 1 and 200. Therefore I split it up for
> > every 25th value.
>
> Ok, but why?


I will use my application on iPad and find it more easy to use multiple
select lists than one big list with all 200 values at once.

Karl


Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen  wrote:

> 2013/7/5 Stuart Dallas 
> 
>> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen  wrote:
>> 
>>> Hello. I have a form in HTML/PHP with for loops that generate a selected
>>> list like this:
>>> for($i = 1; $i< 25;$i++ ){
>>> 
>>> }
>>> 
>>> The lists look like this:
>>> 
>>> http://localhost/%7Ekarl/kasen/io/kp/index.php>"
>>> method="post">>> value="1-25" selected="selected">1-25>> value="1">12>> value="3">34>> value="5">56>> value="7">78>> value="9">910>> value="11">1112>> value="13">1314>> value="15">1516>> value="17">1718>> value="19">1920>> value="21">2122>> value="23">2324>> value="25">25 Kg >> name="valgt_dynamit_polse_26-50kg">>> selected="selected">26-50>> value="26">2627>> value="28">2829>> value="30">3031>> value="32">3233>> value="34">3435>> value="36">3637>> value="38">3839>> value="40">4041>> value="42">4243>> value="44">4445>> value="46">4647>> value="48">4849>> value="50">50 Kg 
>>> 
>>> What I try to do with it is to register the selected value and do
>> something
>>> with it. The lists is weight in KG. I hope to select only one value
>> between
>>> 1-25kg OR 26-50kg. I don't know if this is possible? What do you think?
>> 
>> If the range of acceptable values is 1-50, why do you have two select
>> fields instead of one?
> 
> The select list has values between 1 and 200. Therefore I split it up for
> every 25th value.

Ok, but why?

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Tedd Sperling 

> On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen 
> wrote:
> > The lists look like this:
> >
> > http://localhost/%7Ekarl/kasen/io/kp/index.php>"
> > method="post"> > value="1-25" selected="selected">1-25 > value="1">12
>
> Review this:
>
> http://sperling.com/php/select/
>
> Also, omit 'multiple' in the select statement.
>
> Other than that, the demo shows how to gather the information you want.
>
> Cheers,
>
> tedd
>
> _
> tedd.sperl...@gmail.com
> http://sperling.com


Thank you very much! 


Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas 

> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen  wrote:
>
> > Hello. I have a form in HTML/PHP with for loops that generate a selected
> > list like this:
> > for($i = 1; $i< 25;$i++ ){
> > 
> > }
> >
> > The lists look like this:
> >
> > http://localhost/%7Ekarl/kasen/io/kp/index.php>"
> > method="post"> > value="1-25" selected="selected">1-25 > value="1">12 > value="3">34 > value="5">56 > value="7">78 > value="9">910 > value="11">1112 > value="13">1314 > value="15">1516 > value="17">1718 > value="19">1920 > value="21">2122 > value="23">2324 > value="25">25 Kg  > name="valgt_dynamit_polse_26-50kg"> > selected="selected">26-50 > value="26">2627 > value="28">2829 > value="30">3031 > value="32">3233 > value="34">3435 > value="36">3637 > value="38">3839 > value="40">4041 > value="42">4243 > value="44">4445 > value="46">4647 > value="48">4849 > value="50">50 Kg 
> >
> > What I try to do with it is to register the selected value and do
> something
> > with it. The lists is weight in KG. I hope to select only one value
> between
> > 1-25kg OR 26-50kg. I don't know if this is possible? What do you think?
>
> If the range of acceptable values is 1-50, why do you have two select
> fields instead of one?


The select list has values between 1 and 200. Therefore I split it up for
every 25th value.

Karl


Re: [PHP] Can this work?

2013-07-05 Thread Tedd Sperling
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen  wrote:
> The lists look like this:
> 
> http://localhost/%7Ekarl/kasen/io/kp/index.php>"
> method="post"> value="1-25" selected="selected">1-25 value="1">12http://sperling.com/php/select/

Also, omit 'multiple' in the select statement.

Other than that, the demo shows how to gather the information you want.

Cheers,

tedd

_
tedd.sperl...@gmail.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen  wrote:

> Hello. I have a form in HTML/PHP with for loops that generate a selected
> list like this:
> for($i = 1; $i< 25;$i++ ){
> 
> }
> 
> The lists look like this:
> 
> http://localhost/%7Ekarl/kasen/io/kp/index.php>"
> method="post"> value="1-25" selected="selected">1-25 value="1">12 value="3">34 value="5">56 value="7">78 value="9">910 value="11">1112 value="13">1314 value="15">1516 value="17">1718 value="19">1920 value="21">2122 value="23">2324 value="25">25 Kg  name="valgt_dynamit_polse_26-50kg"> selected="selected">26-50 value="26">2627 value="28">2829 value="30">3031 value="32">3233 value="34">3435 value="36">3637 value="38">3839 value="40">4041 value="42">4243 value="44">4445 value="46">4647 value="48">4849 value="50">50 Kg 
> 
> What I try to do with it is to register the selected value and do something
> with it. The lists is weight in KG. I hope to select only one value between
> 1-25kg OR 26-50kg. I don't know if this is possible? What do you think?

If the range of acceptable values is 1-50, why do you have two select fields 
instead of one?





-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
Hello. I have a form in HTML/PHP with for loops that generate a selected
list like this:
for($i = 1; $i< 25;$i++ ){
 
}

The lists look like this:

http://localhost/%7Ekarl/kasen/io/kp/index.php>"
method="post">1-2512345678910111213141516171819202122232425 Kg 26-5026272829303132333435363738394041424344454647484950 Kg 

What I try to do with it is to register the selected value and do something
with it. The lists is weight in KG. I hope to select only one value between
1-25kg OR 26-50kg. I don't know if this is possible? What do you think?

Thanks.
Karl