Add an add to cart button

How can i use the button “add to cart” if a want to a a product into basket through a Slider made in Java script. Or if I have a customised php page and i need to connect the products of that page to the basket. Is there any way i can do that.

I have made a Slider in JS and embeded in Oxid Page all i want is that if a user click on the button “add to cart” on particular slide , that product should go into cart. How can i do that , is it possible to do.
This option will help my customers client to quickly add products into his cart/basket.
Its bit urgent

you could implement a button to submit following:

fnc=tobasket
aid=<productoxid>
am=<quantity>

so the generated link would be

http://www.shop.de/basket/?fnc=tobasket&aid=dc5ffdf380e15674b56dd562a7cb6aec&am=2

which would put two pcs. of item with oxID dc5ffdf380e15674b56dd562a7cb6aec into the basket

Thanks will try it

that was really a great help Ray , How can i send multiple products into basket on just one click , like i selected multiple products and then click on “add to cart”

just add all products to an array like this in your template:

http://forum.oxid-esales.com/showthread.php?t=5300#post32058