access private properties and pass variable form to php part 1

March 17th, 2016 by Nov Piseth Leave a reply »

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

Cal1.php

Cal1.php

 

 

 

 

 

 

 

 

 

 

viewcal1

viewcal1

Advertisement

Comments are closed.

WP2Social Auto Publish Powered By : XYZScripts.com