Creating a new thread outside VB. Got it working but...
I need a script that will create a new thread whenever I post something to my custom CMS.
I assume there's more to it than just inserting a new row into the thread table ... so I dug into the VB code and I was able to create a relatively simple PHP script that uses the datamanager to create a new thread.
My problem is that when I pass values to the script (the forum id, title and content), whether via GET or POST, the values are not able to be used to create the new thread.
I added a few echo statements to the script to make sure the script is receiving the variables correctly and it prints out the correct values, it's just that when I try to use the values later in the script to actually create the thread it's as if they don't exist because I get "ERROR0:Please complete both the subject and message fields."
If I hard-code the values directly into the script everything works fine. I'm a Perl guy and a total PHP newbie, so I can only assume there is something with the VB code/datamanager that is not allowing my script to use the passed in values to do anything.
Can anyone point me in the right direction here?
|