title: php function call direct as html form action
body: <p>I have found that following HTML form code</p>
  
  <pre><code>&lt;form action="&lt;?php foo(bar)?&gt;" method="post" enctype="multipart/form-data"&gt;
  &lt;label for="file"&gt;Filename:&lt;/label&gt;
  &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
  &lt;input type="submit" name="submit" value="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>works fine when <code>foo(bar)</code> is a function available in the current scope.</p>
  
  <p>I am very new to php and html and couldn't find any documentation of this functionality online. Are there any downsides of using <code>&lt;?php foo(bar)?&gt;</code> instead of calling a script file <code>foo.php</code>?</p>