It depends on what you want to do really. Giving an adoptable is a simple db insert. The way to trigger that insert by clicking an image can be done in different ways:
- If the image takes you to a new page (/adopt/code for example), create those files for that page and if needed read the URL to know which adoptable the user is trying to get, check if it exists and if it does give it to the user
- Or with javascript, by making it activate an event on image click, requires the use of ajax though, which mysida isn't very fond of
__________________
asp.net stole my soul.
Last edited by IntoRain; 11-09-2014 at 09:59 AM.
|