Discussion on Wordpress PDO Crud – Crud & Form Builder Plugin for wordpress

ddeveloper

ddeveloper supports this item

Supported

41 comments found.

Hello, I’m having trouble having two different forms in the same page, my code is like this:

$pdocrud = new PDOCrud(); $pdocrud->formDisplayInPopup(“AddBug”,”Add Bug”, true); echo $pdocrud->dbTable(“ad_bugs”)->render(“insertform”);

$pdocrud->formDisplayInPopup(“AddReport”,”Add Report”, true); echo $pdocrud->dbTable(“ad_reports”)->render(“insertform”);

When I click the button to make a “Add Report” through the form, the form it appears is also the “Add Bug” form…

If I make two pdocrud variables, pdocrud1 and pdocrud 2 for the same page it appears correctly but then when I click Add/save in the form it adds duplicates because there’s 2 pdocrud variables defined.

Can you help??

Hi,

Please check how to use multiple instance of pdocrud on same page

http://pdocrud.com/demo/pages/multi-instance

Thanks

by
by
by
by
by
by