Page 1 of 1

Generating a new topic using a form

PostPosted: Wed May 31, 2006 3:43 am
Author: ihammo
Hi all

First off, i am a php noob so please be nice!! <img>

I have trawled through the forums and as yet haven't been able to find out how to do this.

What I want to do is create a simple form on a page that can be filled in and submitted. Once the form is submitted I would like the data in the form to appear as a new topic in a certain forum.

Is that actaully possible?

Thanks

PostPosted: Thu Jun 01, 2006 6:42 am
Author: phDaemon
there is a code function in the phpBB Mod Authors Discussion forum that does this...if your not a php savvy person you may have problems doing this....however, i believe a simple html form could do it as well...
( unless phpBB fixed this bug )

something like
<form>

and the appropriate fields and field names for it.

BTW: notice that i said bug because it is fairly easy to make a javascript application that can spam a forum every set number of seconds using "post" and the forum id.

Re: Generating a new topic using a form

PostPosted: Thu Jun 01, 2006 7:22 am
Author: ihammo
Hi

I managed to find a function that might be able to help with this:

http://www.phpbb.com/phpBB/viewtopic.php?t=45535

looking through the code you have to use a specific user ID to be able to post which you hard code. So I am assuming that as I dont have any public forums and only php on my host server can run SQL queries, that noone could use this to spam mt forum

I can knock a simple HTML form up pretty fast, all I need to work out is how to pass the variables to the insert_post() function

<img>