fdifranco
03-02-2010, 01:31 AM
Hello there,
Let's say I want to write a widget that contains a trivia question. I don't have a problem creating the form in the widget with PHP.
I have a multiple choice question and the user selects "A" (the first option) and submits the form. I understand that in my form action I need to specify a handler. What I've done to test my widget is to handle the form in another PHP page, that's pretty straight-forward.
The problem is that the action is being handled by a page that isn't a vBulletin page so the output from my PHP page is plain. No nice vBulletin-looking page.
How should I handle the form input? Is there a vBulletin page that I need to use in my action instead of my vanilla PHP page?
Any help is appreciated. Thanks in advance.
Let's say I want to write a widget that contains a trivia question. I don't have a problem creating the form in the widget with PHP.
I have a multiple choice question and the user selects "A" (the first option) and submits the form. I understand that in my form action I need to specify a handler. What I've done to test my widget is to handle the form in another PHP page, that's pretty straight-forward.
The problem is that the action is being handled by a page that isn't a vBulletin page so the output from my PHP page is plain. No nice vBulletin-looking page.
How should I handle the form input? Is there a vBulletin page that I need to use in my action instead of my vanilla PHP page?
Any help is appreciated. Thanks in advance.