PDA

View Full Version : [Solved]Security error on php form post


janaf
08-15-2010, 05:52 PM
I have a technical database that I am trying to integrate into my 4.0.6 site, using php gadget and php direct eval code. I am new at PHP and fairly new at vB.... I Created a php widget. It has a html form with a post button, targeting the same page

<form action="" method="POST">
The form has some drop-down selections and a submit button.
When hitting the submit button button, I get:

Your submission could not be processed because a security token was missing

Any ideas how to solve this?

janaf
08-18-2010, 05:24 PM
I have tried

Creating an all new style
adding a security token in the code

Failed.

When I disable vB 4.0.6 Blog, the error dissapears!
Is this a bug I should report?

--------------- Added 1282212136 at 1282212136 ---------------

Talking to myself here but ragtek sent a solution. Adding this seems o solve my problem:
$a.='<input type="hidden" name="securitytoken" value="';
$a.=vb::$vbulletin->userinfo[securitytoken];
$a.='" />';