Hi member<br><br>I crated the form , which contains some text fields and option button,<br><br>I want to submit the form using ajax submit, <br><br>Can one guide me, how do submit the form using ajax,(without page reload),,<br>
<br><br><br><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['city'] = array(</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#id' =>'testcity',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#title' => t('Where'),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#type' => 'radios',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#description' => t(''),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#options' => array(t('City'),t('Address')),</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#default_value' => variable_get('city', 0),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#required' => TRUE,</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#attributes' => array('onclick' => "javascript:callform(this.value)"),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['txtWhere'] = array(</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#title' => t('Where'),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#type' => 'textfield',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#description' => t(''),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#required' => TRUE,</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['txtChkIn'] = array(</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#title' => t('Check-In'),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#type' => 'textfield',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#description' => t(''),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#attributes' => array('class' => 'jscalendar'),</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#jscalendar_ifFormat' => '%Y-%m-%d %H:%M',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#jscalendar_showsTime' => 'true',</span><br style="color: rgb(0, 153, 0);">
<br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['txtChkOut'] = array(</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#title' => t('Check-Out'),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#type' => 'textfield',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#description' => t(''),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#attributes' => array('class' => 'jscalendar'),</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#jscalendar_ifFormat' => '%Y-%m-%d %H:%M',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#jscalendar_showsTime' => 'true',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['guest'] = array(</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#type' => 'select',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#title' => t('Guests'),</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#options' => array(</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> 1 => '1',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> 2 => '2',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> 3 => '3',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> 4 => '4',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> 5 => '5',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> ),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#default_value' => '1',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#description' => t(''),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#required' => TRUE</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['rooms'] = array(</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#type' => 'select',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#title' => t('Rooms'),</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#options' => array(</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> 1 => '1',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> 2 => '2',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> 3 => '3',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> 4 => '4',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> 5 => '5',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> ),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#default_value' => '1',</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#description' => t(''),</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#required' => TRUE</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> </span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> $form['submit'] = array(</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> '#type' => 'submit',</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> '#value' => t('submit')</span><br style="color: rgb(0, 153, 0);">
<span style="color: rgb(0, 153, 0);"> );</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);"> return $form;</span><br style="color: rgb(0, 153, 0);"><br><br><br> <br>-- <br>உங்கள் நண்பன் <br>
பரணி குமார் <br><br>Regards<br>B.S.Bharanikumar<br><br>POST YOUR OPINION <br><a href="http://bharanikumariyer.hyperphp.com/">http://bharanikumariyer.hyperphp.com/</a><br>