How do I use Ajax and Jquery to get an array from PHP and post it?

Posted by Jared on Stack Overflow See other posts from Stack Overflow or by Jared
Published on 2010-03-12T16:24:14Z Indexed on 2010/03/12 16:27 UTC
Read the original article Hit count: 178

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX