Server IP : 103.118.17.23 / Your IP : 216.73.216.168 Web Server : Microsoft-IIS/10.0 System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64 User : IWAM_plesk(default) ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/basic_qform/ |
Upload File : |
<?php require_once('../qcubed.inc.php'); // Define the Qform with all our Qcontrols class ExamplesForm extends QForm { // Local declarations of our Qcontrols protected $btnButton; // The class member variable of the intCounter to show off a Qform's state protected $intCounter = 0; // Initialize our Controls during the Form Creation process protected function Form_Create() { // Definte the Button $this->btnButton = new QButton($this); $this->btnButton->Text = 'Click Me!'; // Add a Click event handler to the button -- the action to run is a ServerAction (e.g. PHP method) // called "btnButton_Click" $this->btnButton->AddAction(new QClickEvent(), new QServerAction('btnButton_Click')); } // The "btnButton_Click" Event handler protected function btnButton_Click($strFormId, $strControlId, $strParameter) { // Increment our counter $this->intCounter++; } } // Run the Form we have defined ExamplesForm::Run('ExamplesForm'); ?>