Thread: Breeding
View Single Post
  #14  
Old 10-26-2009, 03:11 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 17,051
BMR777 is on a distinguished road
Default RE: Breeding

Don't forget to secure your variables. Anything coming in from the user needs to be secured, otherwise your site can easily be hacked.

For:

PHP Code:
$femaleid $_POST['female'];
$maleid $_POST['male'];
$breed $_POST['breed']; 
I recommend:

PHP Code:
$femaleid $_POST['female'];
$maleid $_POST['male'];
$breed $_POST['breed'];

$femaleid secure($femaleid);
$maleid secure($maleid);
$breed secure($breed); 
That will run the built in security on the variables before you use them in the database. Without this your site can be hacked by someone entering in malicious data. :)
Reply With Quote