title: If else condition in form action
body: <p>Can we use if else condition in form action like this:</p>
  
  <pre><code>&lt;form action="&lt;?php if(condition)
  {
  //redirect to some view file or show error
  //run some queries
  
  }
  else
  {
  //redirect to another view
  }
   ?&gt;" method="post"&gt;
  </code></pre>