Hi
i have a page "newlaunching.p hp" page on which image is displayed and when user clicks one of thumbnail its larger image comes to this page(newlaunchi ng.php) from "getimage.php"p age using ajax and it is working fine! now i want to get the "id" of the larger image from "getimage.p hp so that i could pass this value to "ADD to CART" button for which the product will be added to cart. By default on "ADD to CART" button by default's image id comes. I tried to pass the id using images name attribute then tried to retrieve it using $_POST['name']; method but it is not working then i tried a hidden input box and passed id to its value attribute and used if(isset('produ ctid')); here productid is the name of hidden input box. but it also did not worked.
how could i do this please suggest !
i have a page "newlaunching.p hp" page on which image is displayed and when user clicks one of thumbnail its larger image comes to this page(newlaunchi ng.php) from "getimage.php"p age using ajax and it is working fine! now i want to get the "id" of the larger image from "getimage.p hp so that i could pass this value to "ADD to CART" button for which the product will be added to cart. By default on "ADD to CART" button by default's image id comes. I tried to pass the id using images name attribute then tried to retrieve it using $_POST['name']; method but it is not working then i tried a hidden input box and passed id to its value attribute and used if(isset('produ ctid')); here productid is the name of hidden input box. but it also did not worked.
how could i do this please suggest !
Comment