Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Another ? from the Kitsune (http://www.mysidiaadoptables.com/forum/showthread.php?t=3533)

SilverDragonTears 03-25-2012 10:12 PM

Another ? from the Kitsune
 
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.

PHP Code:

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?


All times are GMT -5. The time now is 08:01 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.