inherit
169267
0
Nov 25, 2024 15:26:25 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 4, 2012 7:48:35 GMT -8
I made a form on a page I created, and I have a button. How can I direct the form information to go to a board on my forum? I also need to know how to make it, so they have to fill out all the fields before they submit it.I filled out the form, and I got it to go where I wanted to go.But... the information I input did not show up. Can anybody tell me what I'm missing in the code below? Thank you
<html> <body> <form name="input" action="/thread/19/" method="get"> Name:<input> "Please use user name."<br/> <br/>
Position:<select> <option value="select">Select</option> <option value="Global Moderator">Global Moderator</option> <option value="Board Moderator">Board Moderator</option> <option value="Help Desk">Help Desk</option> </select>"Please select from the drop down."<br/> <br/> Experience:<select> <option value="Yes">Yes</option> <option value="No">No</option> </select><br/> <br/> Tell me how you can help(Yrs of exp.ect...)<br/> <textarea rows="10" cols="50"></textarea><br/> <br/> <input type="submit" value="Submit"> </form> </body> </html>
How do I make the thread progress to the next thread? This is in another category but I may have put it in the wrong one to begin with, so it's a repeat. sorry about this. | |
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Dec 4, 2012 8:29:04 GMT -8
It wouldn't be possible to make a form submit to a thread or anything like that because of the cross-site request forgery prevention measures ProBoards uses needing two tokens for a form to be submitted. While one token that seems to correspond to the user session (but isn't the same as the user session cookie) is available in the Javascript variables provided at the top of the page source, the other one is generated each time server-side (at least, it changed each on each reload) for each form and isn't accessible. There's also some things to do with the main forum Javascript when the form is submitted. All of this will be so ProBoards can control/verify what data is uploaded to their servers. Basically, it's simply not possible to do that and even it was it would likely be against the TOS, although I'd wait for a member of staff to confirm anything. Also, you're including an <html> and <body> tag when the page already has those (the forum still works because your browser is automatically ignoring them) and you're using GET (used for retrieving/getting information) instead of POST (sending/submitting/posting information) for the method.
|
|
inherit
169267
0
Nov 25, 2024 15:26:25 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 4, 2012 9:45:44 GMT -8
Ok, I get it. So how do I make a form that will work? Or is this a no go altogether? Thanks for the insight Shrike
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Dec 4, 2012 11:25:18 GMT -8
I could think of two ways you could do this, there might be other ways I've not thought of:
One way would be to have the form as it is (with some fixes) and still have people fill it in as before. Then clicking submit would copy their choices to the browser's localstorage (or to a text area that they'd then copy, for obsolete browsers without localstorage), take them to the posting form for the thread and then (either automatically or with another button) fill in the textarea there. They'd then have to hit the "Create Post" button themselves, but this would be a totally feasible way of doing it. This would be the most seamless approximation of what you want to do, but it'd require some scripts for both the custom page and the thread (I'd be happy to try and write these though).
The other way would be to simply have a link to the thread and then use the "Predefined Posting Form" plugin for that thread. Although, saying that, I can't find it anywhere so it might have been removed for whatever reason.
|
|
inherit
169267
0
Nov 25, 2024 15:26:25 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 4, 2012 12:19:43 GMT -8
I would love it if you could help me with this. If you could can you put some comments explaining if you do, do some coding. I am still trying to learn. Thanks man
|
|