Thx for the reply...sorry for not being more detailed.
I think I've done what you've suggested, I have constructed a form (through a php-script) with the checkbox I mentioned above. Everything works, the checkbox calls the JS-function when it's state is altered, and so on.
The php-line that defines the checkbox looks like this:
$xml_cb_entered = new \SimpleXMLElement('<field name="name1' type="checkbox" label="" onchange="submitFunction('1');"/>');
But, I want to have a button instead. And I can't for my life figure out what the corresponding code (in the final webpage or in the php-code) should look like.
I think I've done what you've suggested, I have constructed a form (through a php-script) with the checkbox I mentioned above. Everything works, the checkbox calls the JS-function when it's state is altered, and so on.
The php-line that defines the checkbox looks like this:
$xml_cb_entered = new \SimpleXMLElement('<field name="name1' type="checkbox" label="" onchange="submitFunction('1');"/>');
But, I want to have a button instead. And I can't for my life figure out what the corresponding code (in the final webpage or in the php-code) should look like.
Statistics: Posted by Natrixx — Sat Dec 28, 2024 11:56 am