PDA

View Full Version : Another ? from the Kitsune


SilverDragonTears
03-25-2012, 10:12 PM
I didn't know a short title for it to explain it :/ The way I have my site is that you click the adopt instead of using the form.

if($canadopt == "yes"){
//If we can adopt the adoptable, show the image and adoption link...
$article_content .= "
<td VALIGN='top'><br><br><br><br><br><br><br><br><br><br><a href='doadopt.php?id=".$aid."' onclick='canclick()'><img src='picuploads/png/e42598f988b271a7e66b36b9a5d8143b.png' /></a><br>
{$description}</td>";
}

If a member knows the adoptable id they can just type that into the end up the doadopt url and receive that egg. How can I prevent this?

solskenn
03-25-2012, 10:21 PM
I don't know /crap/ about coding.. so don't put much credit to this. But it /looks to me/ like this might be the problem...

'doadopt.php?id=".$aid."

How to change that so that you'd still have it to click instead of form, but without the problem.. I have no idea.

SilverDragonTears
03-25-2012, 10:28 PM
Yea that sorta has to be there :/

Tequila
03-28-2012, 09:50 AM
Hm.. I did a cheat for that long ago using bit.ly urls... I don't think it would work now though...

SilverDragonTears
03-28-2012, 05:36 PM
I can try it. How'd you do it?