![]() |
SOLVED - Another security token thread - SOLVED
Was i thought i was clear about how to avoid it, but now
i ran into the problem myself, makeing a modification with a form sumbitting to db. user fills in form, and data is saved in db, but i get this wonderfull little error msg.. Code:
Your submission could not be processed because a security token was missing. file works perfectly only this submission to database.. PHP Code:
but it was enough.. here is part of the form im using. Code:
<form name="form1" method="post" action="?do=submitapplication"> i thought i was missing the global above, but its at the top of the file require_once('./global.php'); searching these forums, just shows alot of responses "disable your hooks" etc :D any ideas why the security token is showing up as missing ? EDIT / PS : Allready tryed creating new style to see if the style was borky.. --------------- Added [DATE]1264256070[/DATE] at [TIME]1264256070[/TIME] --------------- Solved its cause by the method="post" when using the form so i simply removed the entire method and my form start looks like this now <form action="?do=submitapplication" name="newapp"> <input type="hidden" name="do" value="submitapplication" /> and it runs perfectly :D |
That is wrong and insecure. On top of that most likely your users will get logged out on submit of the form. With out the hidden input for the session the session gets broke.
Any time you use method="$_POST" you need to add the hidden field for the security token. Put the method back into your code and add the following just above the submit button. Code:
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> |
tx mad dog..
i was googling around, and found <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> but it didnt do squat. :D but it was ofcousse missing the sessionhash. Thank you. |
All times are GMT. The time now is 07:08 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:
|