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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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:
Topic revision: r3 - 2009-04-22 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.