I'm a beginner to Joomla development. I've created a rating module which appears to be below.

enter image description here

I've handled to obtain the rankings from the database, but I don't understand how to place in to the database when user clicks the election button.

I've got a form during my module which consists of the 4 drop lower boxes along with a submit button (Election). Now i'm likely to create a component to be able to process this type data. How must i develop my aspect of process this? And what ought to be the form action during my module?

Any assistance is appreciated. Thanks ahead of time.

Create component http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1 Create module http://docs.joomla.org/Creating_a_simple_module

you have to specify action of the module with JRoute http://docs.joomla.org/Supporting_SEF_URLs_in_your_component

take a look at component code example

$controller->execute( JRequest::getWord( 'task' ) );

which means you must create controller and special task way of processing data

If you do not need component whatsoever place the logic inside your module In by doing this module must have form action to current page and process logic something similar to

$elements = JRequest::getVar('vote_data', array(), 'post');
if(count($elements)) {
   // do something