Tags:
create new tag
view all tags

Question

How can I transfer the text from an HTML form to the textfield in the Edit Page when a submit button is pressed? I would like to create a form similar to this support page form.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2000
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- GabeAlatorre - 09 Jul 2004

Answer

Basically, here's what's involved:

  • In your HTML form, define a name for data-entry field. For example:
<input type="text" name="mytext" size="60" />
  • Also, in the HTML form, designate a Template Topic for the topic you want to create. I.e.:
<input type="hidden" name="templatetopic" value="MyNewTopicTemplate" />
  • In your Template Topic, insert a URLPARAM variable where you want "mytext" to be entered. E.g %URLPARAM{"mytext"}%

Is that clear enough? For more information, see:

Also, a hint about figuring out how a particular TWikiApplication works, even if you can't edit the topic, is to view it "raw" mode. Simply append the url of the topic with "?raw=on".

-- LynnwoodBrown - 09 Jul 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-07-10 - LynnwoodBrown
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.