function formexample_nameform() {<br> $form['first_name'] = array(<br> '#title' => t('First Name'),<br> '#type' => 'textfield',<br> '#description' => t(''),<br>
);<br> $form['annotate']['nid'] = array(<br> '#type' => 'value',<br> '#value' => $node->nid<br> );<br> $form['last_name'] = array(<br> '#title' => t('Description'),<br>
'#type' => 'textfield',<br> '#description' => t(''),<br> );<br> <br> $form['submit'] = array(<br> '#type' => 'submit',<br> '#value' => t('submit')<br>
);<br> <br> <br> return $form;<br> }<br> <br> <br> <br>function formexample_nameform_submit($form_id, $form_values) {<br>global $user;<br>print $nid = $form_values['annotate'];<br>print $note = $form_values['first_name'];<br>
$description = $form_values['last_name'];<br>/*db_query("DELETE FROM {contactus} WHERE uid = %d and nid = %d", $user->uid,<br>$nid);*/<br>db_query("INSERT INTO {contactus} (uid, nid, name,description, timestamp) VALUES (%d, %d,'%s','%s', %d)", $user->uid, $nid,$note,$description, time());<br>
drupal_set_message(t('Your contactus was saved.'));<br>}<br> <br>How to get the next nid,<br><br><br clear="all"><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>