Tags:
create new tag
view all tags

Question

Is it possible to create a new wiki page via a form that is not inside the tWiki? Example: A user fills out a form on whatever.com/form.php and then it creates a wiki article called WhateverWeWant populated with the fields in form.php.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Forms

-- BrianHerbert - 14 May 2007

Answer

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.

Yes this would work fine. As long as the form action points to a twiki script, it will handle the form.

For example, the following form will create a new page in the Sandbox web.

<form name="createtopic" action="http://twiki/bin/save/Sandbox/" method="post">
<input type="hidden" name="onlywikiname" value="on" />
<input type="hidden" name="onlynewtopic" value="on" />
<p />
Topic Name <input type="text" name="topic" size="30" /></td>
<p />
<input type="submit" name="submit" value="Create" />

-- AndrewRJones - 15 May 2007

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-04-22 - PeterThoeny
 
  • 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.