create new tag
, view all tags

SID-02303: Need to include twiki code only on button click

Status: Asked Asked TWiki version: 6.0.1 Perl version:
Category: CategoryPlugins Server OS: RedHat Linux Last update: 1 year ago


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


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

      Change status to:
ALERT! 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.
Status Asked
Title Need to include twiki code only on button click
SupportCategory CategoryPlugins
TWiki version 6.0.1
Server OS RedHat Linux
Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2017-03-02 - TWikiGuest
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.