Forms code

1 Conversation

To have a form on your page that lets you post into a forum directly from it, here's the code:

<p><FORM onsubmit="return runSubmit()" method="POST" action="addnewthread.cgi">
<INPUT id="forum" type="hidden" value="forum#"/>
<INPUT id="threadid" type="hidden" value="thread#"/>
<INPUT id="inreplyto" type="hidden" value="reply#"/>
<INPUT id="article" type="hidden" value/>
<BR/>
Subject: <INPUT id="subject" type="text" value="Subject Default Value"/><BR/>

Text: <BR/><TEXTAREA cols="50" id="body" wrap="virtual" rows="10">Text default value.</TEXTAREA><BR/>
<INPUT id="cmd" type="submit" value="Post Message"/>
<INPUT id="cmd" type="submit" value="Preview Message"/>
</FORM></p>

To find out those numbers, visit the forum and thread for the first two (they're in the url) and reply to it for the third.

Please see http://www.h2g2.com/A316216 for possible applications of this theorum.

Bookmark on your Personal Space


Conversations About This Entry

Entry

A247240

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

References

External Links

Not Panicking Ltd is not responsible for the content of external internet sites

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more