access private properties and pass variable form to php part 1
Below code is how to access private class by its method and pass through variable in HTML form to PHP code.
First we need coding class and assign the name of the file called Cal1.php.
Second we create HTML from with some variables and try to pass its to php code using extract() method and assign the file called viewcal1.php.
- extract() method is the method that abstract the global variable $_POST after submit to array key in php.
Finally, you can test your code