SID-02303: Need to include twiki code only on button click
| Status: |
Asked |
TWiki version: |
6.0.1 |
Perl version: |
|
| Category: |
CategoryPlugins |
Server OS: |
RedHat Linux |
Last update: |
9 years ago |
Hello,
I have a requirement to take input from user and on button click add that data in database. For that I have taken form to enter data. But plugin code for inserting data into database is getting executed before button click only. Everytime i refresh the twiki page data is getting inserted into database.
Can someone suggest the way to do this?
Thanks in advance.
--
TWiki Guest - 2017-03-01
Discussion and Answer
Hello,
Please guide me in solving this. Is Rest Handler is solution to this? Assume I am using
DatabasePlugin from
http://twiki.org/cgi-bin/view/Plugins/DatabasePlugin
. Suppose I have written code to insert record in table using this plugin then everytime the page is refreshed or loaded the record is getting added into database. I want it to happen only on button click. If Rest handler is solution then it is a blob data i need to add into table. so is it possible.
Thanks in advance
--
TWiki Guest - 2017-03-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.