its not woorking ill show more code...
At the top:
PHP Code:
if ($vbulletin->userinfo['resume'])
{
$errormessage .="Sorry, you are only aloud to submit 1 resume, if you are having troubles, please contact the admin.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
At Bottom:
PHP Code:
if ($_POST)
{
//#########################
//crap to make shure theres no errors...
//#########################
}
else
{
//#################################
//Stuff for e-mail, that vb.org is not aloud 2 see :P
//#################################
//Mail it off!
mail("cody.woolaver@gmail.com","Resume Submitted",$message,"From: Celia.net");
//display redirect
$navbits = array();
$navbits[$parent] = 'Staff Resume';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('PYRO_REDIRECT') . '");');
//set query
$db->query_write("
UPDATE " . TABLE_PREFIX . "user
SET resume = '1'
WHERE userid = '" . $vbulletin->userinfo['userid'] . "'
LIMIT 1
")
ok, after i hit submit, it takes me 2 the redirect page, fine... i go back, redo it, click submit, and it still allows em 2 submit it...
i made a table inside "user" called "resume", int(1)"
now, shoudlent that work?