boionfire81 Posted March 11, 2016 Posted March 11, 2016 (edited) 1,2,3,4,5,6,7,8,9,10 Edited November 24, 2016 by boionfire81 Quote
NonStopCoding Posted March 11, 2016 Posted March 11, 2016 because the way the staff crimes file is coded it checks for empty fields and you inserting 0 into the box is classed as a empty so a fix would be to find the $_POST variable in the staff crimes file that handles the posting of the amount of crystals to the database and edit the empty statement to something like if(empty($_POST['crystals']) && !is_numeric($_POST['crystals'])) this will allow it to accept 0 as a input Quote
NonStopCoding Posted March 12, 2016 Posted March 12, 2016 its basicly saying that you using a variable before declaring it add this above the line 443 if(!isset($_GET['step'])) $_GET['step'] = ""; There are other ways to do this but this is easy enough :) Quote
NonStopCoding Posted July 5, 2016 Posted July 5, 2016 oh wow, just saw the email notification for this in my inbox. lol. I really learned a lot in 3 months. [uSER=70347]NonStopCoding[/uSER] [uSER=65371]sniko[/uSER] [uSER=68711]KyleMassacre[/uSER] [uSER=65530]Coly010[/uSER] [uSER=53425]Magictallguy[/uSER] TY! basicly lets say you have a form that sends username to you inside this you are passing there username to you using the post variable and the name <form method='post' action='filename.php'> <input type='text' name='user' placeholder='insert your name here' /> </form> // now lets see the back end of the code im not going to add in security as its only a example echo $username; as we have not made the variable username it would show up as a undefined error called user but if we made a variable called $username = $_POST['user']; // it would show the name. Quote
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.