I have the following form:
HTML Code:
<form action = "steamconverter.php" method = "post">
<b>SteamID:</b> <input type = "text" name = "STEAMID"> <input type = "submit" value = "Convert to community ID">
<p><i>Or</i><p>
<b>CommunityID:</b> <input type = "text" name = "COMMUNITYID"> <input type = "submit" value = "Convert to STEAMID">
</form>
It's in a custom page within vBulletin, although the issue is whenever I click submit, I get a security token error, and I'm unsure how to resolve this, any help would be gladly accepted.
Edit:
Ok I did some digging and it turns out this has to be placed somewhere:
HTML Code:
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
Although I'm unsure as to how to make it work.
--------------- Added [DATE]1273185471[/DATE] at [TIME]1273185471[/TIME] ---------------
Nevermind, I've got it, if anyone wants to know I solved it by placing this at the very start of my form:
HTML Code:
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />