I have created a module i can use to create multiple blocks, now with one of those blocks, there is a requirement for a form (which the user needs to be able to see). However, this does not require any Drupal "Save" interactions.
Its a very simple static form that is manipulated with Ajax functionality. I have just coded this form simply within the TPL file.
<form name="formelement" method="post">
<input name="data" type="hidden" value="" />
<div class="something_here">something here</div>
<div class="something_here">something there</div>
<input required="" type="text" class="" name="blah1">
<input required="" type="text" class="" name="blah">
<div>
<button type="submit" class="btn" href="">submit</button>
</div>
</form>
Question - I need to be able to get the $_POST in a function - what would be the best method of creating this form with the .module file or the drupal 7 api and then print it within the tpl file