function sig_change()
{
global $ir,$c,$userid,$h;
print "<h3>Profile Sig Change</h3>
<form action='preferences.php?action=sigchange2' method='post'>
signature (you may use BBcode): <textarea rows=10 cols=50 name='signature'>{$ir['signature']}</textarea><br />
<input type='submit' value='Change Info' /></form>";
}
function do_sig_change()
{
global $db,$ir,$c,$userid,$h;
$db->query("UPDATE users SET signature='{$_POST['signature']}' WHERE userid=$userid");
print "signature changed!";
}
what it wont do is post to the db. i double checked the field it is correct it will work if i manually post the update in the db and shows correctly on the profile page