Craft CMS Asked by JustinTheeDude on June 22, 2021
I am trying to create a plugin that takes the POST data from an order and emails it to the end user. Which property should I use to do this? I’ve already tried to use getContent()
and getContentFromPost()
.
So for example if I have
<input type="text" name="dataName" value="">
And in my plugin I’m trying to get the value of “dataName” which property should I use?
HttpRequestService's getPost is what you're looking for:
$value = craft()->request->getPost('dataName');
Answered by Brad Bell on June 22, 2021
In CraftCMS 3.x craft.app.request.getBodyParam('dataName')
Answered by Yura Kosyak on June 22, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP