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 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