How do I use Ajax and Jquery to get an array from PHP and post it?
- by Jared
Hello,
I am using a separate PHP file as a configuration file for everything else on a basic ecommerce site.
$product1["short"] = "product one";
$product1["menuimgslideshowsrc"] = "image/product1.jpg";
When I hover over a button, I want to get $product1["menuimgslideshowsrc"] and swap it out with an IMG SRC.
I can do the swapping no problem, I need to know how to get the information stored in $product1["menuimgslideshowsrc"]. I assume I would use Ajax, but I am open to other ideas.
Thanks in advance.