The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[SOLVED] security token problem with a form in my plugin
Hello ,
i used this code in my plugin in hook : misc_start this is a form to do insert on database PHP Code:
i think something is missing about session , and i think if i put a form in a template will be working good but i want but it on a plugin This error appears Your submission could not be processed because a security token was invalid. If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error. |
#2
|
|||
|
|||
I think you need to change the string so that the variables are evaluated, like this:
PHP Code:
Also, is that the entire plugin code? If so, you should really check $_REQUEST['do'], otherwise you will interfere with other functions in misc.php (but maybe you only posted part of the plugin). |
2 благодарности(ей) от: | ||
omardealo, TheLastSuperman |
#3
|
||||
|
||||
Quote:
Do you have other suggestions? And Do not worry about $_REQUEST['do'] code, I'm quite sure that there's no problem with any another php code . Only problem in form code .:up: this the outpot : PHP Code:
----------------- okay now i think it working good , PHP Code:
PHP Code:
|
2 благодарности(ей) от: | ||
kh99, TheLastSuperman |
#4
|
|||
|
|||
Oh, right, I should have remembered that $session and $bbuserinfo only work in templates.
|
#5
|
||||
|
||||
Yeah Me too, thank you my dear brother :up:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|