Log in

View Full Version : Problem!


Xius
10-16-2009, 11:18 AM
I've made it on my site that only 3 eggs at a time are displayed on adopt.php, but as long as anyone knows the egg's code
Such as: adopt.php?id=4
They can adopt as many of that egg as they want.

Is there a way to make it so you can only adopt that adoptable if you've gone through adopt.php and not just entering it's ID?

gabeki
10-16-2009, 02:00 PM
I think you could change its method from $_GET to $_POST, but you'd have to change it in functions too, but i'm not so smart at php

I wish I could know some better method too..

oh and since it's the same subject... I made a batle system and the monsters appear randomly, and after a fight a user can simply refresh the page and battle again, because the method I used is $_POST... does anyone know any secure method for this? like.. when the user battles a monster, he can't battle again unless the monster appears again...

ty