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