Hi All,
I am using a loop to display professionals and their data on a webpage. I have a "Recommend" button that is included in this loop and when clicked, displays a jquery POPUP form that will email the chosen professionals data.
My trouble is, when I click the "Recommend" button it's not pulling the proper professionals information.
It pulls from the very last professional in my loop.
Here is what is included in my loop:
$display .= "
<div class=\"agentLocated\">
<div class=\"agentLocatedTop\">
<div class=\"agentLocatedName\"><a href=\"profileView.php?profileView=" . $agentId . "\">". $agentName . "</a></div>
<div class=\"agentLocatedProStatus\">, Agent</div>
<div class=\"agentLocatedLevel\"><img width=\"15\" height=\"15\" src=\"images/icons/medal_gold_2.png\" /></div>
<div class=\"agentLocatedProfile\"><a href=\"profileView.php?profileView=" . $agentId . "\">Profile</a></div>
<br/>
<br/>
<div class=\"agentLocatedImageWrapper\">
<div class=\"agentLocatedImage\"><a href=\"profileView.php?profileView=" . $agentId . "\"><img class=\"\" width=\"54\" height=\"64\" style=\"border: none;\" src=\"" . $agentPhoto . "\"></a></div>
</div>
<div class=\"agentLocatedTagline\">". $agentHeadline . "</div>
<br/>
<div class=\"agentLocatedInfo\">" . $agentCompany . " | | " . $agentLocation . "</div>
<br/>
<br/>
<div class=\"agentlocatedStats\">" . $count . " Blog posts</div>
<div class=\"agentlocatedStats\">" . $countComments . " Comments</div>
<div class=\"agentLocatorRec\">
<div class=\"agentLocatedRecs\">
<div class=\"agentLocatorRecsCount\">0</div>
<div class=\"agentLocatorRecsText\">RECS</div>
</div>
<div class=\"agentLocatedRevs\">
<div class=\"agentLocatorRevsCount\">1</div>
<div class=\"agentLocatorRevsText\">REVIEWS</div>
</div>
<!--BEGIN RECOMMEND BUTTON HERE -->
<div class=\"agentLocatorRecommend\"><a class=\"recommendAgent\" href=\"#\"></a>
</div>
<!-- END RECOMMEND BUTTON HERE -->
</div>
</div>
</div>
<!--BEGIN RECOMMEND POPUP HERE -->
<div class=\"popupContact\">
<a class=\"popupContactClose\">x</a>
<h2>Recommend " . $agentName . " to a friend!</h2>
<p class=\"contactArea\">
Form Field Goes Here!
<br/><br/>
Form Field Goes Here!
<br/><br/>
Send Button Will Go Here!
<br/><br/>
</p>
</div>
<div class=\"backgroundPopup\"></div>
<!--END RECOMMEND POPUP HERE --> \n";
Really appreciate any help on this one...also please let me know if I need to post further information.