Jump to content
MakeWebGames

Recommended Posts

Posted

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

  • 3 months later...
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...