View Single Post
  #8  
Old 11-09-2014, 09:54 AM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,649
IntoRain is on a distinguished road
Default

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.
Reply With Quote