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);
}
<form name="rfq_form id="rfq_form method="post">
<input type="submit" class="btn btn-primary" name="sendtorfq" value="SendData">
</form>
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&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?