How to 'click a button' inside PHP code?

Charlie N

New member
Hi guys

Just a quick question regarding PHP coding for HTML.
Im using a program called QCubed for functions that can be used in HTML pages,

It allows me to add buttons and txtboxes to the HTML pages,
The way it treats buttons is like a trigger to a function
like this:
$this->btnSaveSearch->AddAction(new QClickEvent(), new QAjaxAction('btnSaveSearch_click'));

This is done in the QForm of the PHP code, which is executed ONCE only, this addes the function so that the function btnSaveSearch_click is triggered when the button is pressed by the user.

However there is nothing i can find that allows me to trigger the button inside the PHP code manually, like inside a function or a If statement. What i want is to execute the already set up button on a certain condition, not by user clicking but inside a PHP statement

any help would be appreciated
thanks
 
Back
Top