course.php
<?php
class course{
public function get(){}
public function post(){}
}
?>
我的form表单地址怎么指向 coutrse.php 里面的post方法
<?php
class course{
public function get(){}
public function post(){}
}
?>
我的form表单地址怎么指向 coutrse.php 里面的post方法
if (!isset($_GET['act'])) {
return;
}
$act = $_GET['act'];
$course = new course();
if (!method_exists($course, $act)) {
return;
}
$course->$act();<form action="coutrse.php?act=post" method="post">