Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | reading data from a pulldown menu in a form

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

reading data from a pulldown menu in a form - Ilya Chigirev - May 22 12:12:02 2008

I'm really new at this and this is probably something a lot easier
than what i am making out to be but does anyone know how to read the
value of the selection in a pull down menu?

I have a web form with one of the fields as a pull down menu. It's
either 'Active' or 'Inactive'. Once the submit is hit I want to read
which of the 2 is selected and use that information in my other
functions that happen after submit. once i know which of them is
selected i know what do do, but I'm a bit lost on how to get that.

I'm not sure if sspec_readvariable will work, but i also am not sure
how to do it using that.

does anyone have any ideas?

Ilya C
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: reading data from a pulldown menu in a form - pdaderko - May 24 14:44:24 2008

--- In r...@yahoogroups.com, "Ilya Chigirev" wrote:
>
> I'm really new at this and this is probably something a lot easier
> than what i am making out to be but does anyone know how to read the
> value of the selection in a pull down menu?
>
> I have a web form with one of the fields as a pull down menu. It's
> either 'Active' or 'Inactive'. Once the submit is hit I want to read
> which of the 2 is selected and use that information in my other
> functions that happen after submit. once i know which of them is
> selected i know what do do, but I'm a bit lost on how to get that.
>
> I'm not sure if sspec_readvariable will work, but i also am not sure
> how to do it using that.
>
> does anyone have any ideas?
>
> Ilya C
>

I'm new at using the Rabbit too, but I recently implemented one by
adding a standard HTML dropdown like:
http://www.echoecho.com/htmlforms11.htm . Then inside the code I used
http_scanpost()... ironically, I took the example code from the page
telling why RabbitWeb was better than without RabbitWeb (under "Source
Code without RabbitWeb"):
http://rabbitsemiconductor.com.cn/products/dc/RabbitWeb/index.htm .
Others may be able to give you a better way to do it, but this method
is working for me with checkboxes and dropdowns. I hope this helps.

Pat
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )