Mystical Posted June 17, 2011 Share Posted June 17, 2011 (edited) This one is in staff_gangs.php when you Enter a gang ID to view the record of you get this message. Error: This script requires an action. I cant post the file because the forum software says it is too many characters. Also I found a couple errors in function admin_gang_credit in case someone else is having trouble crediting the gang crystals: function admin_gang_credit() { global $db,$ir, $userid,$c,$h; if ( !in_array($ir['user_level'],array(2,3)) ) { echo 'You cannot access this area.<br />> <a href="index.php">Go Back</a>'; die($h->endpage()); } $gang = ( isset($_POST['gang'])&&is_numeric($_POST['gang']) )?abs(intval($_POST['gang'])):''; $money = ( isset($_POST['money'])&&is_numeric($_POST['money']) )?abs(intval($_POST['money'])):0; $crystals = ( isset($_POST['crystal'])&&is_numeric($_POST['crystal']) )?abs(intval($_POST['crystal'])):0; You need to change this line: $crystals = ( isset($_POST['crystal'])&&is_numeric($_POST['crystal']) )?abs(intval($_POST['crystal'])):0; To this: $crystals = ( isset($_POST['crystals'])&&is_numeric($_POST['crystals']) )?abs(intval($_POST['crystals'])):0; I am learning little by little. Edited June 17, 2011 by Mystical Quote Link to comment Share on other sites More sharing options...
sniko Posted June 17, 2011 Share Posted June 17, 2011 You need an action. For example; file_name.php?action=action_name_here Just change the links or the default function to a menu -sniko Quote Link to comment Share on other sites More sharing options...
Mystical Posted June 17, 2011 Author Share Posted June 17, 2011 You need an action. For example; file_name.php?action=action_name_here Just change the links or the default function to a menu -sniko This is what is there: echo " <form action='staff_gangs.php?action=grecord' method='get'> <h4>Gang Record</h4> Enter a gang ID to view the record of: <input type='text' name='gang' value='1' /><br /> Reason for viewing: <input type='text' name='reason' value='' /><br /> <input type='submit' value='Go' /> </form> Quote Link to comment Share on other sites More sharing options...
sniko Posted June 17, 2011 Share Posted June 17, 2011 And the case's in the staff_gangs.php files? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.