What is the name of the event that hold form post data?
if ( OW::getRequest()->isPost()
some like this maybe: OW_EventManager::ON_FORM_RENDER
Thanks
What is the name of the event that hold form post data?
if ( OW::getRequest()->isPost()
some like this maybe: OW_EventManager::ON_FORM_RENDER
Thanks
But basically here is how the form works.
the html file sets the fields and the form namethen the php file you have
$form = new Form('formname');
then in the php file you set the fields to what you want
example: you can call it whatever you want, such as $MyFormData
$MyFormData = new TextField('fieldname');
$MyFormData->setLabel($language->text('pluginname', 'lang key here'));
$MyFormData->setRequired();
$MyFormData->addAttribute('size','10');
$MyFormData->addAttribute('maxlength','30');
$form->addElement($MyFormData);
then once you have all your fields assigned then you just add the form
$this->addForm($form);
Then when you submit the form it looks for the request that is a post request which is secure (there is post and get) and you also run it through the validator
if( OW::getRequest()->isPost() )
{
if ( $form->isValid($_POST) )
{
then to get the values of the form
$values = $form->getValues();
example of one value would be
$vidtitle = $values['vidtitle']; whatever you called your fieldname
if you want to view the whole array of the form you can do
echo "<pre>";
print_r($values);
exit;
does that help?
OW::getEventManager()->bind(PostService::EVENT_AFTER_ADD, array($this, "onAfterPostAdd"));
OW::getEventManager()->bind(PostService::EVENT_AFTER_EDIT, array($this, "onAfterPostEdit"));
also there is a save event in the blogs controllers save.php file
OW::getEventManager()->trigger(new OW_Event(PostService::EVENT_AFTER_ADD, array(
so you might be able to work that same logic using the postservice into your plugin or find same event in forum
I'm interested in your article that you published on this website, Dehradun Escort Service so please keep sharing insightful facts.
Our goal is to deliver quality of care in a courteous, respectful, and compassionate manner. We hope you will allow us to care for you and strive to be the first and best choice of pharmaceutical products. Buy diazepam 2mg pil
https://ukpharmameds.com/
diazepam 2mg pil
Our goal is to deliver quality of care in a courteous, respectful, and compassionate manner. We hope you will allow us to care for you and strive to be the first and best choice of pharmaceutical products. Buy diazepam 2mg pil
kopen sie Ozempic® De inhoud van generieke pillen en merkgeneesmiddelen is precies hetzelfde. Het enige verschil is de naam
Ozempic kopen
Saxenda® kaufen Der Inhalt von generischen Pillen und Markenmedikamenten ist genau gleich. Der einzige Unterschied ist der Name
koop-saxenda® De inhoud van generieke pillen en merkgeneesmiddelen is precies hetzelfde. Het enige verschil is de naam
kopen sie oxycodon kruidvat® De inhoud van generieke pillen en merkgeneesmiddelen is precies hetzelfde. Het enige verschil is de naam
shipping container® for sale in the USA and Canada online only with Queen Containers your most trusted and reliable shipping container supplier. We operate out of Texas and California. Buy Container Chassis, Shipping Container Accessories, Cold Containers, Blast freezers, etc.
Ozempic senza ricetta (semaglutide) è un’iniezione settimanale utilizzata per migliorare i livelli di zucchero nel sangue negli adulti con diabete mellito di tipo 2.
Zeecontainer kopen in Europe online only with ASHCCO your most trusted and reliable shipping container supplier. We operate out of Antwerp Belgiun. Buy Container Chassis, Shipping Container Accessories, Cold Containers, Blast freezers, etc.