Smarty framework and submitted forms

I have set if sentence when form is validate like:
{if $smarty.request.action == “form1”}

{nocache}
{literal}
<script type=“text/javascript”>
document.location=‘replyfile’;
</script>
{/literal}
{/nocache}
{/if}

  1. How to retrieve values with Smarty as fields have value in name=‘’ …‘’ as now it does not capture value in form.
  2. How to send form ONLY when all fields are validated?

I have currently:
{if $smarty.request.action == “form1”}
and send button like:
<input type=“submit” name=“form” value=“Send my messages” class=“mybutton” />

How to send after validation is performed?
3. This should mean sending form when name=“form1” is clicked. Is it if sentence correct set with name form1?

Application is:

bassistance.de » jQuery plugin: Validation

Version 1.7.
Now is sending when I click on button but it should send values and after validation is made.