Customizing SMF > SMF Coding Discussion

Variables needed when posting

(1/1)

jpaq:
Here's what I want to do:

I want to create a forum where users fill out a form, and the results of that form get posted into the forum.  I'm going to use it as an application process.

Anyways, what I need to know in order to do this is:

What POST method variables do I need to consider and have values set for in order for this to work?  I know how to invoke the proper GET request to make it work, but don't know what exactly I would need for POST in order to get this to work...

Also, what commands would I need to use (and can I use SSI at all for this...) in order to make sure sessions are set and tracked properly so I don't get errant "Your session has timed out" type errors?

Thanks for the help!  :)

jpaq:
Ok, I found this post after doing some additional searching, but it isn't quite what I want...

http://www.simplemachines.org/community/index.php?topic=15505.msg130405#msg130405

Basically, what I was hoping is that rather than re-writing the forum post script, that I could use what was there already by simply using some PHP trickery:

Step 1) User fills out form, hit's the Preview button

Step 2) User is presented all of their information in Preview form, with an option to go back or to Submit.  On this step, in addition to the visible information on the page, there is also a bunch of "hidden" input types which contain all the information that the forum needs for posting (including session ID, all options set to off, subject, body, etc. etc.).

Step 3) Hitting the submit button calls, for instance, http://www.simplemachines.org/community/index.php?action=post2;start=0;board=60 and the forum takes care of posting...

[Unknown]:
You'd have to use SSI.php or smf_api.php to get the session data so you could properly authenticate the user.

-[Unknown]

Navigation

[0] Message Index

Go to full version