Welcome Guest, Not a member yet? Register   Sign In
Drop_down and some_function()
#1

[eluser]phpuser[/eluser]
Hello,

I'm using the following code to show a dropdown into a form :

Code:
$js = 'id="status" onChange="some_function();" class="" style="width:90px"';                              
echo form_dropdown('status', $status,$list['status'],$js);

But I don't know where to put the some_function() method in order to get the selected index into the dropdown and update my database automatically when the dropdown has been changed.

Anyone can help me ?

Thanks !
Joseph


Messages In This Thread
Drop_down and some_function() - by El Forum - 10-02-2010, 04:51 AM
Drop_down and some_function() - by El Forum - 10-04-2010, 08:12 AM
Drop_down and some_function() - by El Forum - 10-04-2010, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB