![]() |
[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. |
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). |
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:
|
Oh, right, I should have remembered that $session and $bbuserinfo only work in templates.
|
Quote:
|
All times are GMT. The time now is 04:05 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|