How to submit a custom form in drupal 7 I am new to drupal, but i have a requirement with form submission .For this i have created a static block . In that block some input types are there like dropdown menu, checkboxes radio button etc. When user clicks on preview button i am able to fetch the data into bootstrap modal dialogue box.So in that modal dialogue form, submit button is there.But when i try to submit the values from modal dialogue box those values are not posted. Those values sent to url.

For this i am using normal $_POST method.


I have placed this code in the block section like regualr php .

if(isset($_POST['sendtorfq']) 
{
  print_r($_POST);
}


&lt;form name="rfq_form id="rfq_form method="post"&gt;
  &lt;input type="submit" class="btn btn-primary" name="sendtorfq" value="SendData"&gt;
&lt;/form&gt;


But it takes form method as GET. and when i place the mouse on the submit button it shows 
the url of that page like /process?name=somename&amp;email=someemail.Every time when i submit the form values are posted to url . But not to post method. Please suggest me  where i was wrong?
I would strongly recommend the Entityform module.  Going with this module, would allow you to take advantage of the countless contributed modules that add fields via field ui. Like the most useful for you would be the Rules and Views modules.

Rules would be used to create custom conditional actions when your form is submitted and Views would allow you to create custom displays using form submissions.