| Onochie Anyanetu 2007-03-16, 8:03 am |
| Almost what I wanted to do.
I am looking for a way to set the default option value to the selection the
user just chose. for example, something like
<select name=cars value=$_POST['cars']>
On 3/16/07, Gunawan Wibisono <landavia81@gmail.com> wrote:
>
> solved
>
> On 3/16/07, Onochie Anyanetu <ubernoch@gmail.com> wrote:
> said
> of
> the
> username/pass.
> validity
> again.
>
> php
> NULL
> hahaha..
> that's simple.. drop down menu always return to the null because u
> don't give selected on one of option.
> i have a function (build in) that's answer your problem.. if you on
> hurry.. i'm sory, i cant give it now.. my skrip in other comp..
> <select>
> <option value="base" selected>sale options</option>
> <option value="base2" >Buy options</option>
> </select>
>
> try this on offline
> i believe.. the first you enter the page.. the sale option will be
> selected
>
> now add 2 option then try one of the option you add have selected..
> what happen next you will see the default will be change, remember
> erase selected
>
> forgive me.. i think it matter of js but it matter of html.
> fyi.. try using ajax .. i believe it make your life for comfort..
> (since it don't need to refresh the page) and make your skill up.
> out.
> entered
> data
> this
> to
> from
> done,
> are
> down
> set
> the
> not
> get
> manipulated.
> Thank
>
>
> --
> akan ada dimana mulut terkunci dan suara tak ada lagi..
> saat itu gunakanlah HP untuk melakukan SMS!!
> -> ini aliran bedul.. bukan aliran aneh.
> tertawa sebelum tertawa didepan RSJ..
>
|