title: can I use a php method in a form action?
body: <p>Is it possible to send form data to a PHP class' method rather than to a file?  Or would I have to use AJAX to do this?</p>
  
  <p>For instance, can I have something like:</p>
  
  <pre><code>&lt;form action="my_obj::form_submit" method="post"&gt;...&lt;/form&gt;
  //rather than
  &lt;form action="my_obj.php" method="post"&gt;...&lt;/form&gt;
  </code></pre>
  
  <p>I don't want anyone to be able to access the entire file directly.  I don't see a problem having a single public static method that is available, though, because a single method is easy to "harden" for public use.  There is an AJAX function to help me do this, but I think it would be faster to not do that.</p>
  
  <p>Thanks</p>