can I use a php method in a form action?

mitasustisp

New Member
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?For instance, can I have something like:\[code\]<form action="my_obj::form_submit" method="post">...</form>//rather than<form action="my_obj.php" method="post">...</form>\[/code\]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.Thanks
 
Back
Top