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
--
BrianHerbert - 14 May 2007
Answer
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