Form Creation - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Development (https://community.mybb.com/forum-68.html) +---- Thread: Form Creation (/thread-226553.html) |
Form Creation - Flinty926 - 2020-02-19 Hi Folks, I'm wondering what the best way to create a form would be? It just needs to be a simple form to insert into a database, I'm just wondering if there's a special MyBB way, or if you guys have any tips. On another note, one of my fields has to be able to handle html input (paypal button form), and if you have any advice for sorting that, I'd love to hear it. Thanks, Flinty Update; So I presumed that I could work with a regular form, however I'm having a template issue. I'm using the following piece of code to display a form:
Test is echoed, so I know the condition is working, however the template evaluation does not. If this condition isn't met, another template is rendered out instead of this. RE: Form Creation - Omar G. - 2020-02-19 I pressume you have a way to figure out which template is being rendered and on what part of your PHP code that said template is eval'd? Because with the piece of code and limited information you provide us with we can only guess. RE: Form Creation - Flinty926 - 2020-02-20 So as it stands, when that condition is being met, no template is being rendered, however when there is no GET attribute, everything works as expected. I'll post more of the code now:
So paypalShopTemplateItem works perfectly fine and as expected, however the template eval in my original post does not work. RE: Form Creation - Flinty926 - 2020-02-26 Still looking for help |